mity / md4c

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

Wrong image title (image nesting) #210

Closed step- closed 5 months ago

step- commented 5 months ago

Something funny is going on, with HTML output mixing the outer image (correct) with the inner title (nonsense). It should associate the outer title, I think.

I don't need a fix, it's just for your record.

Test subject:

![outer image ![middle image ![inner image](test.png "Inner Title")](./test.png "Middle Title")](././test.png "Outer Title")

md2html:

<p><img src="././test.png" alt="outer image middle image inner image" title="Inner Title"></p>
step- commented 5 months ago

Fix holds in my test suite as well. Thank you!