Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 14, 2025

Summary

Replaces custom container parsing logic with remark-directive while maintaining backward compatibility for VuePress/Docusaurus syntax.

Related Issue

Related to issue about replacing containerSyntax with remark-directive implementation.

Changes

  • Dependencies: Moved remark-directive and mdast-util-directive to runtime dependencies
  • Plugin chain: Added remarkDirective before remarkContainerSyntax in the processing pipeline
  • Implementation: Refactored containerSyntax.ts to use remark-directive for standard syntax (e.g., :::tip) while preserving custom parsing for:
    • VuePress/Docusaurus plain text titles: ::: tip Custom Title
    • GitHub alerts: > [!TIP]
  • Whitespace normalization: Updated snapshots to reflect cleaner output (removed unnecessary leading newlines from remark-directive parsed content)

Checklist

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

尝试将 containerSyntax 替换为 remark-directive 相关实现


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@netlify
Copy link

netlify bot commented Nov 14, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit 44ada49
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/6916d7b14a02bf000817081e
😎 Deploy Preview https://deploy-preview-2762--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.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@SoonIter
Copy link
Member

#2756 (comment)

@SoonIter
Copy link
Member

https://docusaurus.io/blog/releases/3.0#markdown

We plan to maintain consistency with docusaurus in the implementation of admonitions, to correctly support the directive syntax in the commonmark specification.

@SoonIter
Copy link
Member

#2550

Copilot AI changed the title [WIP] Replace containerSyntax with remark-directive implementation Replace containerSyntax with remark-directive Nov 14, 2025
Copilot AI requested a review from SoonIter November 14, 2025 07:22
Copilot finished work on behalf of SoonIter November 14, 2025 07:22
@github-actions
Copy link
Contributor

github-actions bot commented Nov 14, 2025

Rsdoctor Bundle Diff Analysis

Metric Current Baseline Change
📊 Total Size 14.3 MB 14.3 MB -68.0 B (-0.0%)
📄 JavaScript 13.7 MB 13.7 MB -68.0 B (-0.0%)
🎨 CSS 108.8 KB 108.8 KB 0 B (0.0%)
🌐 HTML 0 B 0 B N/A
📁 Other Assets 496.7 KB 496.7 KB 0 B (0.0%)

A detailed bundle diff analysis has been generated using Rsdoctor. You can download and view the interactive HTML report from the workflow artifacts.

📦 Download Link: Download Bundle Diff Report

Generated by Rsdoctor Action

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