Parse attributes on body element
As discussed on the Paged Media Mattermost here, pagedjs parses the inner HTML of the
<body> element. This means that it is not aware of attributes on the body.
Is it possible to change this, either so that pagedjs parses the outer HTML of the
body, or that pagedjs somehow reads and applies the attributes on the
body, such as classes?
In our use case, we use classes on the
body extensively in books made up of separate HTML documents. For instance, a copyright page will have
<body class="copyright-page"> and a chapter will have
<body class="chapter">. Mostly, this informs our
@page rules for controlling page numbering and other margin-box features.