mity / md4c

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

Striketrough incorrectly matches closer with 1st opener, not the last preceding one. #222

Closed mity closed 5 months ago

mity commented 5 months ago

Input (with --fstrikethrough)

~foo ~bar baz~

Output:

<p><del>foo ~bar baz</del></p>

Expected:

<p>~foo <del>bar baz</del></p>