yogthos / markdown-clj

Markdown parser in Clojure
Eclipse Public License 1.0
544 stars 121 forks source link

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

Closed hiteshjasani closed 5 years ago

hiteshjasani commented 7 years ago

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>"
dpsutton commented 5 years ago

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