Open catacom opened 3 years ago
This one is difficult to solve, as you have to
mean<em>-spirited</em>
mean-_spirited_
The second option is already implemented for ascii and unicode whitespace, where the unicode whitespace is "more preserved" (#315). This might be similar to the unicode whitespace (where mean<em> spirited</em>
becomes mean\u00A0_spirited_
), but it needs careful analysis regarding other effects. Is this what you suggest?
P.S. I originally thought this is related to intraword emphasis, where using *
and **
instead of _
and __
improves the situation.
Emphasis before dash in hyphenated words generates invalid Markdown output according to CommonMark standards.
Example:
mean<em>-spirited</em>
generatesmean_\-spirited_
which is not to be emphasized according to https://spec.commonmark.org/dingus/Similar issues occur for strong emphasis.