Closed wulechuan closed 3 years ago
This seems like a highlighting issue that you should report to highlight.js! Let me know if I misunderstood the issue
Thanks for your suggestion. I didn't think of reporting target much, so I post it here "by instinct". Sorry for bother.
Maybe markdown-it-highlightjs temporarily reverses to an older verision of hightlightjs?
No problem! markdown-it-highlightjs have a hljs
option where you can pass your own instance of Highlight.js, so you can install a specific version of highlight.js
that you know doesn't have this issue, and pass it in the hljs
option :)
Try js codes shown below, here: https://npm.runkit.com/markdown-it-highlightjs .
Expected output:
Actual output:
For a bit better human readability, I delibratedly insert some indetantions and blank lines to the actual output, then it looks like: