vibe-d/vibe.d

Markdown filter: Single code line vs multiple code lines

andre2007 opened this issue · 2 comments

In Visual Studio Code code enclosed in single back tick is rendered different (markdown preview) than code enclosed in triple back ticks.

The vibe-d markdown filter uses for both cases the same CSS class (prettyprint) therefore I have no chance to e.g. set different colours in my CSS file for a single code line and multi code lines.

Would it be possible to set different CSS classes?

In the inline case you can match with code.prettyprint, whereas the code block case can be matched with pre.prettyprint > code. My initial reaction was to consider dropping the prettyprint class altogether, as that was something specific to Prettify, but considering that existing CSS will probably depend on that this isn't really an option.

Thanks a lot, that works great.