Skip to content

Conversation

@SoonIter
Copy link
Member

@SoonIter SoonIter commented Nov 14, 2025

Summary

chore(mdx): switch containerSynatx unknown types error to warn

Related Issue

#2762

#2708

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 14, 2025 08:19
@netlify
Copy link

netlify bot commented Nov 14, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit 9acbaf8
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/6916e6a6353d820008f22fe4
😎 Deploy Preview https://deploy-preview-2764--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot finished reviewing on behalf of SoonIter November 14, 2025 08:20
Copy link
Contributor

Copilot AI left a 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.warn instead of throwing
  • Added import for logger from @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.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 14, 2025

Rsdoctor Bundle Diff Analysis

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 14.3 MB - -
📄 JavaScript 13.7 MB - -
🎨 CSS 108.8 KB - -
🌐 HTML 0 B - -
📁 Other Assets 496.7 KB - -

Generated by Rsdoctor Action

@SoonIter SoonIter changed the title chore(mdx): switch containerSynatx unknown types error to warn chore(mdx): revert containerSynatx unknown types error to warn Nov 14, 2025
@SoonIter SoonIter changed the title chore(mdx): revert containerSynatx unknown types error to warn chore(mdx): revert containerSynatx unknown types error Nov 14, 2025
@Timeless0911 Timeless0911 merged commit 29aff85 into main Nov 14, 2025
12 checks passed
@Timeless0911 Timeless0911 deleted the syt/text branch November 14, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants