Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Not Escaped #40

Open
edburyenegren-okta opened this issue Jun 4, 2018 · 2 comments
Open

HTML Not Escaped #40

edburyenegren-okta opened this issue Jun 4, 2018 · 2 comments

Comments

@edburyenegren-okta
Copy link

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

@ele828
Copy link
Owner

ele828 commented Aug 1, 2018

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

@ertrzyiks
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants