mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
756 stars 138 forks source link

Link ref. def. mattching broken in some corner cases #142

Closed mity closed 3 years ago

mity commented 3 years ago

In (hopefully a very uncommon) cases, when the label ends with Unicode codepoint with non-trivial folding info, only its 1st codepoint is considered. This can result in false label matches.

Input:

[ﬗ]: /url
[ﬕ]

(using U+fb15 and U+fb17)

Actual output:

<p><a href="/url">ﬕ</a></p>

Expected output:

<p>[ﬕ]</p>