fletcher / MultiMarkdown-5

Reference implementation of MultiMarkdown; replaces MultiMarkdown v4 (deprecated -- see MMD-6 instead)
https://github.com/fletcher/MultiMarkdown-6
Other
294 stars 46 forks source link

Underscore or asterisk at the end of a link renders as <em> #25

Closed nloveladyallen closed 8 years ago

nloveladyallen commented 8 years ago

Input:

[foo_](http://example.com/bar_)
[foo*](http://example.com/bar*)

Expected output:

<p><a href="http://example.com/bar_">foo_</a></p>
<p><a href="http://example.com/bar*">foo*</a></p>

foo_ foo*

Real output:

 <p>[foo<em>](http://example.com/bar</em>)</p>
 <p>[foo<em>](http://example.com/bar</em>)</p>

foo_ foo_

fletcher commented 8 years ago

I'm working on MMD 6 -- this is an entirely new, from scratch, rewrite designed to dramatically improve performance. One of the motivations was to come up with an accurate emph/strong parser that also improves performance.

For now, you can escape characters so that this doesn't happen, e.g. [foo\_].