eleventy-plugin-rss
eleventy-plugin-rss copied to clipboard
Incompatible with Syntax Highlighting plugin?
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
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.