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
fix: fix escape characters in links #2628
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -103,7 +103,7 @@ export class Tokenizer { | |||
return { | |||
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], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because that has to do with finding the correct tokens. This only works for removing escapes after the token is already found.
any objections to merging this? |
## [4.2.2](v4.2.1...v4.2.2) (2022-11-05) ### Bug Fixes * fix escape characters in links ([#2628](#2628)) ([44a2a23](44a2a23))
Marked version: 4.1.1
Description
Fixes backslash escapes for common mark specs
#23
,#24
, and#202
Contributor
Committer
In most cases, this should be a different person than the contributor.