Open edburyenegren-okta opened 6 years ago
I think this is a bug. I will fix this once I get any chance. Welcome if you want to address a fix :)
My blog was also affected by this bug and I have it fixed by using markdown-it
Since I already had the renderer installed https://github.com/hexojs/hexo-renderer-markdown-it I just added the prism plugin https://github.com/jGleitz/markdown-it-prism
npm install markdown-it-prism --save
and added this plugin to markdown-it renderer config
markdown:
plugins:
- markdown-it-prism
With
highlight: false
, HTML is no longer escaped inside code blocks in Hexo.