evilstreak / markdown-js

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

Bug when using inline link with a tittle #147

Open rizalp opened 10 years ago

rizalp commented 10 years ago

The first instance of inline link from the code bellow returned as expected, but the second one does not:

This is an [example inline link](http://lmgtfy.com/) and [another one with a title](http://lmgtfy.com/ "Hello, world").

Looking at chrome dev tools, here's the generated HTML:

<a href="http://lmgtfy.com/) and [another one with a title](http://lmgtfy.com/" title="Hello, world">example inline link</a>

But somehow, if used separately, the code above works

This is an [example inline link](http://lmgtfy.com/)

and

[another one with a title](http://lmgtfy.com/ "Hello, world").

I've tried it using the browser examples