commonmark.js icon indicating copy to clipboard operation
commonmark.js copied to clipboard

Incorrect emphasis handling

Open mity opened this issue 3 years ago • 0 comments

(Distilled from https://talk.commonmark.org/t/i-dont-understand-how-emphasis-is-parsed/3866)

Input:

*****Hello*world****

Actual Output:

<p>*****Hello<em>world</em>***</p>

Expected Output:

<p>**<em><strong>Hello<em>world</em></strong></em></p>

More detailed rationale can be found in this comment: https://talk.commonmark.org/t/i-dont-understand-how-emphasis-is-parsed/3866/8

mity avatar May 12 '21 06:05 mity