fix: markdown breaking on bracketed text between hyperlinks#38629
Merged
fix: markdown breaking on bracketed text between hyperlinks#38629
Conversation
Contributor
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 32700d6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Copilot
AI
changed the title
[WIP] Fix issue and add tests for specific case
Port fix to repository and add tests for specific case
Feb 12, 2026
…ing between links Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Copilot
AI
changed the title
Port fix to repository and add tests for specific case
Fix markdown parser breaking on bracketed text between hyperlinks
Feb 12, 2026
Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Contributor
…eaking parsing Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Copilot
AI
changed the title
fix: markdown breaking on bracketed text between hyperlinks
Fix markdown parser: prevent LinkTitle from consuming text across link boundaries
Feb 12, 2026
Co-authored-by: ggazzo <5263975+ggazzo@users.noreply.github.com>
Copilot
AI
changed the title
fix: markdown prevent LinkTitle from consuming text across link boundaries
Restore package.json and jest.config.ts to original state
Feb 12, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #38629 +/- ##
===========================================
- Coverage 70.45% 70.44% -0.02%
===========================================
Files 3174 3174
Lines 111005 111059 +54
Branches 20000 19990 -10
===========================================
+ Hits 78207 78232 +25
- Misses 30758 30784 +26
- Partials 2040 2043 +3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Member
|
/jira ARCH |
1 similar comment
Member
|
/jira ARCH |
Member
|
/jira ARCH-1935 |
ggazzo
approved these changes
Feb 12, 2026
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.
This pull request addresses issues with markdown parsing when text in square brackets appears between hyperlinks, ensuring that such cases no longer break the markdown structure. The changes include grammar improvements, bug fixes, and new tests to cover these scenarios.
Markdown parsing improvements:
LinkTitlerule ingrammar.pegjsto prevent incorrect parsing when bracketed text appears between links, resolving issues Markdown syntax breaks when typing between two hyperlinks #31418 and Markdown hyperlink syntax #31766.DomainCharrule ingrammar.pegjsto treat square brackets as special characters, avoiding confusion with link syntax.Bug fixes:
.changeset/fix-markdown-between-links.md.Test coverage:
link.test.tsto verify correct parsing of bracketed text between links and multiple links with bracketed text between them.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Task: ARCH-1945