You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the original spec is vague and this example does look incorrect. The GFM spec covers this and has a comprehensive set of rules attached, but I don't see an easy way of implementing that.
It would likely require completely re-writing how we process emphasis, doing away with the regex and going for a manual approach
Activity
twavv commentedon Nov 19, 2025
This also happens with URLs which breaks them.
Crozzers commentedon Nov 21, 2025
Fixed with middle word em extra.
Regarding the main issue, according to the original markdown spec this is a valid em.
However, the original spec is vague and this example does look incorrect. The GFM spec covers this and has a comprehensive set of rules attached, but I don't see an easy way of implementing that.
It would likely require completely re-writing how we process emphasis, doing away with the regex and going for a manual approach