evilstreak / markdown-js

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

link parse not correct #46

Closed neekey closed 12 years ago

neekey commented 12 years ago

use markdonw.parse the following md string:

JavaScrip((as[nodeJS](http://nodejs.org))and[webdriverNode](https://github.com/neekey/webdriverNode).

which will out put:

<p>JavaScript( as<a href="http://nodejs.org))and[webdriverNode](https://github.com/neekey/webdriverNode">nodeJS</a>.</p>

hope to fix!

ashb commented 12 years ago

Which version did you get this behaviour with? It appears to be fixed on master and produces:

<p>JavaScrip((as<a href="http://nodejs.org">nodeJS</a>)and<a href="https://github.com/neekey/webdriverNode">webdriverNode</a>.</p>
neekey commented 12 years ago

@ashb I use npm to install it, and the package.json seems the version is 0.3.1

lemonad commented 12 years ago

Also had problems with 0.3.1 and anchors enclosed by parenthesis (fixed on master as you noted above). Any chance of updating the npm package?

ashb commented 12 years ago

Sorry yes - just published 0.4.0

lemonad commented 12 years ago

@ashb Many thanks!

neekey commented 12 years ago

@ashb Thks!