yogthos/markdown-clj

URL's in img elements should not be interpreted as markdown

hiteshjasani opened this issue · 1 comments

We can embed literal HTML and it works as expected:

bug.core=> (mc/md-to-html-string "<img src=\"/123.jpg\">")
"<p><img src=\"/123.jpg\"></p>"

Except if we have _ characters in the URL. Then it tries to interpret them as markdown and messes up the URL:

bug.core=> (mc/md-to-html-string "<img src=\"/_123_.jpg\">")
"<p><img src=\"/<i>123</i>.jpg\"></p>"

@hiteshjasani this is addressed in 1.0.8. If this updated version works for you you should be able to close this issue.