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

Escape special characters #17

Open
mpastell opened this issue Jan 2, 2015 · 1 comment
Open

Escape special characters #17

mpastell opened this issue Jan 2, 2015 · 1 comment

Comments

@mpastell
Copy link

mpastell commented Jan 2, 2015

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 &lt; etc, but if you wan't to support inline HTML in paragraphs then it takes more work.

@hayd
Copy link

hayd commented Mar 12, 2015

This is fixed in JuliaLang/julia#10061 (so should be in 0.4 and hopefully the next Markdown.jl release).

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

2 participants