Markdown `*emphasis* inside a paragraph emits incorrect HTML unless it's on the first or last line #1727
Labels
category: inline elements
L1 - broken
Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue
Describe the bug
Markdown `emphasis inside a paragraph emits incorrect HTML unless it's on the first or last line.
To Reproduce
Here's what Marked does. Notice that the middle two lines both have one half of an
<em>
(but different halves!), and in each case one of the*
s persists in the output. The first and last lines are unaffected.Here's what commonmark does, which is correct.
Expected behavior
Markdown with
*emphasis*
should always turn into an<em></em>
tag.Details
At first I thought that this might be related to #1699, but now that seems unlikely. This bug seems to exist for any
*emphasis*
in any paragraph.The text was updated successfully, but these errors were encountered: