Markdown.jl
Markdown.jl copied to clipboard
Escape special characters
Markdown.jl should escape special characters. Currently I get:
julia> input = """
`<tag>`
"""
"`<tag>`\n"
julia> output = stringmime("text/html", Markdown.parse(input))
"<div class=\"markdown\">\n<p><code><tag></code></p>\n</div>\n"
which does not work render well browsers. It's fairly easy to fix this for code blocks replacing < with < etc, but if you wan't to support inline HTML in paragraphs then it takes more work.
This is fixed in https://github.com/JuliaLang/julia/pull/10061 (so should be in 0.4 and hopefully the next Markdown.jl release).