evilstreak / markdown-js

A Markdown parser for javascript
7.69k stars 863 forks source link

Gruber fail parsing inline links in specific block of text #221

Open radek opened 9 years ago

radek commented 9 years ago

Gruber fail parsing links in this block of text:

[Link](/url) "then text" then ("[link again](/url)")

renders as:

<a href="/url)" title="then text&quot; then (&quot;[link again](/url)">Link</a>

while should as:

<a href="/url">Link</a> &quot;then text&quot; then (&quot;<a href="/url">Link again</a>&quot;)

Work around would be to place optional (empty) title inside first link. I start debugging it but didn't get to a satisfactory fix.