Repository navigation
chore(mdx-loader): upgrade Markdown dependencies (AI-assisted) - #12458
Merged
Merged
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: +67 B (0%) Total Size: 12.4 MB 📦 View Changed
ℹ️ View Unchanged
|
⚡️ Lighthouse report for the deploy preview of this PR
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
|
Size Change: +67 B (0%) Total Size: 12.5 MB 📦 View Changed
ℹ️ View Unchanged
|
2 of 3 tasks
3 tasks done
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.
Motivation
Upgrade MDX / Remark / Rehype / Unified dependencies
Adapt the code, remove the useless dynamic imports due to ESM-only packages.
Add more unit tests
Raise the Node 24 CI build heap limit from 300 MB to 350 MB after an out-of-memory failure; keep Node 26 at 300 MB. (temporary, we'll drop v24 soon)
These upgrades shouln't lead to any visible breaking changes for our users.
Test Plan
pnpm test: 184 test files, 2,976 tests passed.pnpm build:packages: all packages built;pnpm --filter @docusaurus/mdx-loader buildalso passed after the final runtime changes.pnpm build:website:fast: production build, static rendering, and broken-link checks passed.ESLint, formatting, and spelling checks on changed files;
pnpm lint:syncpack;git diff --check.Replace the empty processor test with focused coverage for Markdown/MDX tables, titles, TOC exports, emoji, async plugins, legacy syntax, and raw HTML. Review exact compiled-output snapshots.
Investigated Argos text diffs on the migration guide and v3 preparation blog post: Directive 4 recognizes numeric directive names, which Docusaurus restores to text. React adds hydration separators between the resulting adjacent text nodes; visible text is unchanged and visual snapshots passed.
Test links
Deploy preview: https://deploy-preview-12458--docusaurus-2.netlify.app/
Related issues/PRs