Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with Syntax Highlighting plugin? #43

Open
spaceninja opened this issue Oct 3, 2023 · 1 comment
Open

Incompatible with Syntax Highlighting plugin? #43

spaceninja opened this issue Oct 3, 2023 · 1 comment

Comments

@spaceninja
Copy link

spaceninja commented Oct 3, 2023

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
Copy link
Contributor

uncenter commented Dec 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants