evilstreak / markdown-js

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

[BUG] href not correctly parsed when text and its url both contains underscore. #307

Closed AntiMoron closed 3 years ago

AntiMoron commented 5 years ago
[A_B](http://somewebsite.com?someparameter=A_B)

expected:

[A_B]

currently: image

AntiMoron commented 5 years ago

If anyone fixed this please comment here and let me know.

mrcalexandre commented 3 years ago

I had the same issue this morning and a quick fix I found was putting the string with _ between `. It uses <code></code> as a workaround to display A_B instead of A<em>B. [ A_B ` ](https://somewebsite.com]

AntiMoron commented 3 years ago

Thanks.