When using < and > characters in code blocks, the HTML is displayed unexpectedly.
markdown source:
```HTML
\<abbr>12312\</abbr>
```
result:
expected:
After debugging, I find maybe the method for adding highlight classnames cause it.
Characters < and > in markdowns' code block (as below)
<abbr>12312</abbr>
will be transformed to < and > by default so that it can be rendered in HTML correctly.
However, minos uses cheerio for appending hljs classname for highlighting (in the patchCodeHighlight function). As a result $.html() returns the final HTML string without < and >.
When using
<
and>
characters in code blocks, the HTML is displayed unexpectedly.markdown source:
```HTML \<abbr>12312\</abbr> ```
result:
expected:
After debugging, I find maybe the method for adding highlight classnames cause it.
Characters
<
and>
in markdowns' code block (as below)will be transformed to
<
and>
by default so that it can be rendered in HTML correctly.However, minos uses cheerio for appending
hljs
classname for highlighting (in thepatchCodeHighlight
function). As a result$.html()
returns the final HTML string without<
and>
.