mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
* fix: keep a backslash in a code span from hiding emphasis The em/strong mask replaced every backslash escape before it masked code spans, but a backslash inside a code span is literal. A code span ending in `\` therefore lost its closing backtick in the mask, so the next backtick paired with it and the emphasis between them was masked out and rendered as literal `_` or `*`. Mask escapes only outside code spans. * fix: keep emphasis out of a code span that holds a backtick --------- Co-authored-by: breken-ai <312387581+breken-ai@users.noreply.github.com>