middleman / middleman-syntax

Code syntax highlighting plugin via Rouge for Middleman
https://middlemanapp.com
MIT License
179 stars 57 forks source link

Disable Line Numbers in RSS Feed #77

Closed adamalbrecht closed 6 months ago

adamalbrecht commented 5 years ago

I like enabling the line numbers, but I just realized that they don't work in my RSS feed. They just appear above the entire code snippet.

Is there any way to hide them in certain contexts like this?

markets commented 6 months ago

Hello @adamalbrecht 👋🏼

Unfortunately, there is no option/flag in middleman-syntax to disable any setting when using a different renderer (in your case, the XML for a RSS feed). But I think it can be done manually by manipulating the body (like removing undesired HTML or using the strip_tags helper) when rendering the feed.