Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken "Strong" transform #2280

Closed
Tiberiusss opened this issue Nov 11, 2021 · 1 comment · Fixed by #2627
Closed

Broken "Strong" transform #2280

Tiberiusss opened this issue Nov 11, 2021 · 1 comment · Fixed by #2627
Labels
category: inline elements L1 - broken Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue

Comments

@Tiberiusss
Copy link

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

@UziTech UziTech added category: inline elements L1 - broken Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue labels Nov 12, 2021
@calculuschild
Copy link
Contributor

calculuschild commented May 12, 2022

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".

UziTech pushed a commit that referenced this issue Nov 2, 2022
* fix: Support escapes within emphasis

...particularly right at the end.

Fixes #2280

* chore: realign comments with regexp alternatives

* test: Add HTML test for escapes within emphasis

* fix: Correct recognition and masking of escaped emphasis punctuation

* fix: Correct backslash fake-lookbehind
github-actions bot pushed a commit that referenced this issue Nov 2, 2022
## [4.2.1](v4.2.0...v4.2.1) (2022-11-02)

### Bug Fixes

* Support escapes within emphasis ([#2627](#2627)) ([377823a](377823a)), closes [#2280](#2280)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: inline elements L1 - broken Valid usage causes incorrect output OR a crash AND there is no known workaround for the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants