hexo-prism-plugin icon indicating copy to clipboard operation
hexo-prism-plugin copied to clipboard

HTML Not Escaped

Open edburyenegren-okta opened this issue 6 years ago • 2 comments

With highlight: false, HTML is no longer escaped inside code blocks in Hexo.

edburyenegren-okta avatar Jun 04 '18 01:06 edburyenegren-okta

I think this is a bug. I will fix this once I get any chance. Welcome if you want to address a fix :)

ele828 avatar Aug 01 '18 03:08 ele828

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

ertrzyiks avatar Jan 12 '20 10:01 ertrzyiks