nshipster.com icon indicating copy to clipboard operation
nshipster.com copied to clipboard

Codeblocks don't render correctly in RSS readers

Open gdbing opened this issue 8 months ago • 0 comments

When this article is viewed in Safari, the first multiline codeblock looks like this:

Image

But when it is viewed in an RSS reader like NetNewsWire it looks like this:

Image

As I understand it, the contents of codeblocks are converted from plaintext (in the raw article) into a sequence of tiny span blocks, in the published html article, which are presumably indented and styled with CSS or Javascript.

The problem is that the RSS feed contains the converted codeblock contents, which do not indent correctly in RSS readers, without the special rendering CSS or Javascript.

gdbing avatar Aug 06 '25 18:08 gdbing