Markdig.SyntaxHighlighting icon indicating copy to clipboard operation
Markdig.SyntaxHighlighting copied to clipboard

Unsupported language cause html in code blocks to be rendered as html, not text

Open mrjones2014 opened this issue 6 years ago • 1 comments

For example, the following markdown snippet will render an actual button, instead of the html as text:

image

Unsupported languages should at least attempt to escape html.

mrjones2014 avatar Jan 24 '20 13:01 mrjones2014

this is a breaking issue for me so I ended up using a custom solution using Prism.js to handle syntax highlighting. Please fix in the future.

mrjones2014 avatar Jan 27 '20 15:01 mrjones2014