Repository navigation
Fix range of mdast-util-to-markdown - #22
Merged
Merged
Conversation
The `unicode` and `afterNode` fields on unsafe patterns, used since 7a13d4a, were added in `mdast-util-to-markdown@2.2.0`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
Member
|
thanks, released in |
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.
Initial checklist
Description of changes
7a13d4a (released in 3.1.1) uses the
unicodeandafterNodefields on unsafe patterns, which were added inmdast-util-to-markdown@2.2.0. Butpackage.jsonstill allowsmdast-util-to-markdown@^2.0.0.Projects whose lockfile already has
mdast-util-to-markdown@2.1.xkeep it when they upgrade onlymdast-util-directive, as Dependabot does. 2.1.x ignores both fields: it compiles[^\s\p{P}\p{S}]without theuflag, where\pis a literalp. So colons followed by punctuation get escaped, including in link URLs:With
mdast-util-to-markdown@2.1.2:With
mdast-util-to-markdown@2.2.0:We ran into it in Docusaurus: meta/docusaurus#12804.
🤖 Generated with Claude Code