Repository navigation
Conversation
|
@snooze26h is attempting to deploy a commit to the MarkedJS Team on Vercel. A member of the Team first needs to authorize it. |
UziTech
requested changes
Sep 29, 2026
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
UziTech
requested changes
Sep 30, 2026
UziTech
approved these changes
Sep 30, 2026
UziTech
left a comment
Member
There was a problem hiding this comment.
Nice catch! Thanks for helping improve marked 💯
Member
|
@snooze26h did you mean to close this PR before it was merged? |
2 of 4 tasks
This branch was successfully deployed
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: 18.0.14,
masteratc61543ed0f16121ace9255626abcafe9514cb1b0Markdown flavor: GitHub Flavored Markdown
Description
An image inside a link resets the lexer's
inLinkstate tofalse. A following bare URL or email address is then autolinked inside the enclosing link, producing nested<a>elements and changing the document's clickable destinations.Expected:
Current output:
Save and restore the enclosing
inLinkvalue around the recursive label tokenization. Add a regression fixture intest/specs/newcovering six inputs: bare URLs, email addresses, reference links/images, nested images, and normal autolinking after the enclosing link ends. Five of the inputs produce nested anchors before the fix.This covers the state restoration left outside the scope of #4051. The trailing-URL test also checks the behavior fixed in #2186.
Validation
npm testpassed on Node.js 24.20.0 (macOS arm64), including documentation/build generation, specification tests, unit tests, UMD/CJS checks, TypeScript checks, and lint. Re-run with the standard HTML differ: 1,863 specification tests and 193 unit tests passed. The fixture still fails against the pre-fix tokenizer using the standard HTML differ.Contributor
Committer