mity / md4c

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

Incorrect emphasis parsing #14

Closed mity closed 7 years ago

mity commented 7 years ago

(Copied from jgm/cmark#177, we are hit with exactly the same issue.)

@raphlinus writes:

In the example a***b* c*, cmark produces a**<em>b</em> c*, where I believe the spec would say a*<em><em>b</em> c</em>. My reading of the spec is that the length of the opening delimiter run is 3, and the length of both closing runs is 1, so in neither case the sum is a multiple of 3.

mity commented 7 years ago

Fixed.