guides.cocoapods.org icon indicating copy to clipboard operation
guides.cocoapods.org copied to clipboard

Safari's Reader Mode break the content

Open AliSoftware opened this issue 10 years ago • 5 comments

When enabling the "Reader mode" in Safari, the content of the guides (any guides page that supports "Reader mode" anyway) is truncated and missing paragraphs (making the content inconsistent).

E.g. in the following capture, paragraphs are missing (see original page) at the beginning (starting from 2nd paragraph) and in other places of the content, and content stops prematurely, missing the end of the article. guides safari reader

AliSoftware avatar Dec 02 '14 21:12 AliSoftware

This is because those code blocks contain a nested article node.

segiddins avatar Dec 02 '14 21:12 segiddins

Also, some guides don't have the "Reader Mode" available, e.g. http://guides.cocoapods.org/using/getting-started.html (even though there is an article element in this page)

AliSoftware avatar Dec 02 '14 21:12 AliSoftware

Also, what's with the < in front of each header/title?

AliSoftware avatar Dec 02 '14 21:12 AliSoftware

Also, what's with the < in front of each header/title?

The CSS content that adds it should be excluded from reader view.

segiddins avatar Dec 02 '14 21:12 segiddins

I just realized that it's not just truncated in the end, it's even missing a lot of paragraphs in the middle. Like after the first paragraph, there is a whole block missing — from that 2nd paragraph to the first code block of the page's real content)

AliSoftware avatar Dec 02 '14 21:12 AliSoftware