-
-
Notifications
You must be signed in to change notification settings - Fork 198
chore(mdx): revert containerSynatx unknown types error #2764
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
Conversation
✅ Deploy Preview for rspress-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Pull Request Overview
This PR changes the behavior when an unknown container directive type is encountered in MDX from throwing an error to logging a warning instead.
- Changed error handling for unknown container types to use
logger.warninstead of throwing - Added import for
loggerfrom@rsbuild/core - Commented out the test that verified the error-throwing behavior
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/core/src/node/mdx/remarkPlugins/containerSyntax.ts | Changed from throwing an error to logging a warning for unknown container types, added logger import |
| packages/core/src/node/mdx/remarkPlugins/containerSyntax.test.ts | Commented out test that verified error-throwing behavior for unknown types |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rsdoctor Bundle Diff Analysis
Generated by Rsdoctor Action |
Summary
chore(mdx): switch containerSynatx unknown types error to warn
Related Issue
#2762
#2708
Checklist