-
-
Notifications
You must be signed in to change notification settings - Fork 7
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 code blocks are not escaped #5
Comments
@emmasax thanks for the issue and linking back to the SO question. I'll take a look at this and see if we can remove the unescaping. There is another markdown helper that doesn't unescape and I think this one should follow that same pattern. |
@doowb What is the other markdown helper, out of interest? |
The other helper is helper-markdown. It works as a block helper that renders the markdown from inside the block. |
Handlebars escapes the html automatically if you use For more info look here: https://handlebarsjs.com/guide/expressions.html#html-escaping |
If I have a markdown file containing:
The output of the pre/code blocks is not escaped, so the HTML renders on the page instead of being readable code.
I found this which explains it exactly: https://stackoverflow.com/questions/47279702/markdown-imported-file-not-writing-escaped-characters-in-fences
The text was updated successfully, but these errors were encountered: