Styles Inserted via CSSOM Not Rendered
Another library that I use to render the HTML prior to passing it into pagedjs, styled-components, renders its styles via the CSSOM API (I see pagedjs uses this as well). These styles are not included in the pagedjs rendered output if null is passed into Previewer.preview(...)
. V5 of this library gives the ability to turn this off for certain elements (see here - https://styled-components.com/docs/api#stylesheetmanager), but I am stuck on V4, which doesn't include this ability! While I will try to update to V5 of styled-components so that I can turn this behavior off where needed, not handling these CSSOM styles seems like a flaw in pagedjs.