pagedown icon indicating copy to clipboard operation
pagedown copied to clipboard

Package documentation not rendering in Chrome/Edge for macOS

Open jimjam-slam opened this issue 1 year ago • 1 comments

When I load https://pagedown.rbind.io/ in Safari 15.5, it loads as expected. But on Edge 103.0.1264.51 and Chrome 103.0.5060.114, I'm only seeing the first four pages, and all content after the header 'Contents' is missing:

image

I do see the full, unstyled content of the page flash briefly before this.

Inspecting the DOM on Edge and Chrome, I see that div.pagedjs_pages has style="--pagedjs-page-count: 4;" instead of style="--pagedjs-page-count: 49;", and it only has four child divs. The full content of the documentation does still seem to be in the template element.

Seems like something is going wrong with the paged CSS styling or rendering!

jimjam-slam avatar Jul 13 '22 04:07 jimjam-slam

Thank you for the repot. I can see that ! It seems something as changed in our last build or in browser.

cderv avatar Jul 13 '22 08:07 cderv

So it seems to be an issue related to paged.js in new / recent chrome version : https://github.com/pagedjs/pagedjs/issues/84

I'll try to see if I can apply some workaround from there. Otherwise, we may maybe block and needs to wait for a fix upstream 😓

For more context, in our case this is something related to the TOC. Setting toc: false will solve the issue;

cderv avatar Sep 21 '22 13:09 cderv

I fixed this on our side by tweaking the default CSS we use. This seems to be a good workaround while waiting for a new Paged.js version

cderv avatar Sep 21 '22 13:09 cderv

Excellent. Thanks!

yihui avatar Sep 21 '22 14:09 yihui

A note from paged.js developers: We should try update to latest version.

cderv avatar Sep 21 '22 16:09 cderv