eleventy-plugin-rss icon indicating copy to clipboard operation
eleventy-plugin-rss copied to clipboard

Incompatible with Syntax Highlighting plugin?

Open spaceninja opened this issue 1 year ago • 1 comments

I just finished converting my site to an Eleventy blog, using the blog starter template, and I was surprised to find that my markdown code blocks were not rendering properly in the feed.

You can see the problem here — https://spaceninja.com/feed/feed.xml — in the "In Praise of Vite" post, where the <pre> element is rendered, but all of the code is wrapped in <span> tags with the syntax highlighting classes.

Seems like the Syntax Highlighting and RSS plugins don't play nicely together. Is there something I can do?

If it's helpful, my blog source is here: https://github.com/spaceninja/spaceninja.com/blob/main/src/feed/feed.njk

spaceninja avatar Oct 03 '23 18:10 spaceninja

Hmm. What feed reader are you using? It should render that HTML just fine. I'm using a slightly different syntax highlighter but the output should be similiar and I'm seeing no problems in Newsboat. <span> tags are inline elements so it don't expect any difference there.

uncenter avatar Dec 04 '23 15:12 uncenter