Intra-word emphasis can match the wrong asterisks #1607
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
Asterisks may be used to indicate intra-word emphasis, as in
levio*SAH*
forlevio<em>SAH</em>
, however, matching over-aggressively seeks to pair opening asterisks with asterisks at ends of words, sometimes skipping the intended intra-word asterisk.To Reproduce
See this Marked demo link:
yields
Note the intra-word asterisks are converted to another layer of emphasis, rather than interrupting emphasis as they should. Another expression of this same bug is this:
which yields
leaving unconverted asterisks.
Expected behavior
Compare to these CommonMark Dingus links, which yield
and
The text was updated successfully, but these errors were encountered: