marked icon indicating copy to clipboard operation
marked copied to clipboard

Broken "Strong" transform

Open Tiberiusss opened this issue 3 years ago • 1 comments

Marked version: 4.0.1

Describe the bug if inside bold text from the right border there is an escaped square open bracket and there is a closing brace behind "**", then bold text is not recognized

To Reproduce

  1. Marked Demo
  2. CommonMark Demo

Expected behavior image

Tiberiusss avatar Nov 11 '21 21:11 Tiberiusss

This seems to be in conflict with the spec: https://spec.commonmark.org/0.30/#right-flanking-delimiter-run

Edit: Misread the spec. This indeed looks like valid markdown. I wonder if our backslash escapes are resulting in characters not being recognized as "punctuation".

calculuschild avatar May 12 '22 15:05 calculuschild