SimonWaldherr/micromarkdown.js

Links break if they contain underscores or asterisks

Closed this issue · 1 comments

Hello, I appreciate your library, very nice work. However I've encountered a bug and thought I'd let you know. This example:

[markdown](http://en.wikipedia.org/wiki/_Markdown_)

... Will stop the link from rendering. The same is true with images:

#![µmd.js](http://simonwaldherr.de/test_umd_.png)

I guess its worth noting that two asterisks also break it, even if they are not a common thing in URLs

[markdown](http://en.wikipedia.org/wiki/*Markdown*)

Cheers.

Nevermind, I just read about escaping markdown. It works fine if you escape the offending characters:

[markdown](http://en.wikipedia.org/wiki/\_Markdown\_)

Thanks again.