11ty / eleventy-plugin-rss

A pack of Eleventy plugins for generating an RSS feed.
https://www.11ty.dev/docs/plugins/rss/
MIT License
92 stars 22 forks source link

Incompatible with Syntax Highlighting plugin? #43

Open spaceninja opened 9 months ago

spaceninja commented 9 months ago

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

uncenter commented 7 months ago

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.