Missing css counter-reset after paged
The table of contents example for some reason doesn't work if you want to export your html to puppeteer (page numbers are 0)
The HTML generated after pagedjs is missing some important css like counter-reset, counter-increment etc. In the browser it looks like everything is working (probably some caching) but if you take the html as a string and inspect it, you can see some css properties are missing.
It's easy to reproduce: Open the createToc/index.html in the experiments repo. You can see the page numbers. If you inspect the pseudo after element you can see the counter-reset.
If you click the style (marked in yellow) you can see its empty (removed by pagedjs)
The problem is, when you export your html as a string, this part is missing, which results in 0 pagenumbers
Have a look at the generated html
Is there a way to fix this?