fix: fix escape characters in links#2628
Merged
UziTech merged 3 commits intomarkedjs:masterfrom Nov 5, 2022
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| type: 'code', | ||
| raw, | ||
| lang: cap[2] ? cap[2].trim() : cap[2], | ||
| lang: cap[2] ? cap[2].trim().replace(this.rules.inline._escapes, '$1') : cap[2], |
Contributor
Member
Author
There was a problem hiding this comment.
No because that has to do with finding the correct tokens. This only works for removing escapes after the token is already found.
5 tasks
Member
Author
|
any objections to merging this? |
styfle
approved these changes
Nov 4, 2022
github-actions bot
pushed a commit
that referenced
this pull request
Nov 5, 2022
## [4.2.2](v4.2.1...v4.2.2) (2022-11-05) ### Bug Fixes * fix escape characters in links ([#2628](#2628)) ([44a2a23](44a2a23))
Logiclayer1111
pushed a commit
to Logiclayer1111/marked
that referenced
this pull request
Apr 20, 2026
## [4.2.2](markedjs/marked@v4.2.1...v4.2.2) (2022-11-05) ### Bug Fixes * fix escape characters in links ([#2628](markedjs/marked#2628)) ([f3f1c71](markedjs/marked@f3f1c71))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Marked version: 4.1.1
Description
Fixes backslash escapes for common mark specs
#23,#24, and#202Contributor
Committer
In most cases, this should be a different person than the contributor.