Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Samoy
Copy link
Contributor

@Samoy Samoy commented Nov 11, 2025

๐Ÿค” This is a ...

  • ๐Ÿ†• New feature
  • ๐Ÿž Bug fix
  • ๐Ÿ“ Site / documentation improvement
  • ๐Ÿ“ฝ๏ธ Demo improvement
  • ๐Ÿ’„ Component style improvement
  • ๐Ÿค– TypeScript definition improvement
  • ๐Ÿ“ฆ Bundle size optimization
  • โšก๏ธ Performance optimization
  • โญ๏ธ Feature enhancement
  • ๐ŸŒ Internationalization
  • ๐Ÿ›  Refactoring
  • ๐ŸŽจ Code style optimization
  • โœ… Test Case
  • ๐Ÿ”€ Branch merge
  • โฉ Workflow
  • โŒจ๏ธ Accessibility improvement
  • โ“ Other (about what?)

๐Ÿ”— Related Issues

fix #1283

๐Ÿ’ก Background and Solution

Resolve the issue where the toolbar icons of HighlightCode and Mermaid do not comply with ant-design/x standards

๐Ÿ“ Change Log

Language Changelog
๐Ÿ‡บ๐Ÿ‡ธ English Resolve the issue where the toolbar icons of HighlightCode and Mermaid do not comply with ant-design/x standards
๐Ÿ‡จ๐Ÿ‡ณ Chinese ่งฃๅ†ณHighlightCodeๅ’ŒMermaid็š„ๆ“ไฝœๆ ๅ›พๆ ‡ไธ็ฌฆๅˆant-design/x่ง„่Œƒ็š„้—ฎ้ข˜

- ๅœจ HighlightCode ๅ’Œ Mermaid ๆ’ไปถไธญ็”จ Actions.Copy ๆ›ฟๆขๅคๅˆถๆŒ‰้’ฎ
- ๅœจ Mermaid ๆ’ไปถไธญ็”จ Actions ็ป„ไปถ้‡ๆž„็ผฉๆ”พๅ’Œไธ‹่ฝฝๆ“ไฝœ
@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2025

Preview is ready

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 11, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

โœจ Finishing touches
๐Ÿงช Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

โค๏ธ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Samoy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

ๆญคๆ‹‰ๅ–่ฏทๆฑ‚ๆ—จๅœจ้€š่ฟ‡ๅฐ† x-markdown ๅบ“ไธญ HighlightCode ๅ’Œ Mermaid ๆ’ไปถ็š„ๅทฅๅ…ทๆ ๆ“ไฝœๆŒ‰้’ฎๆ›ฟๆขไธบ Actions ็ป„ไปถ๏ผŒๆฅ้‡ๆž„ๅ’Œๆ ‡ๅ‡†ๅŒ–็”จๆˆท็•Œ้ขใ€‚่ฟ™ไธ€ๆ›ดๆ”น็กฎไฟไบ†่ฟ™ไบ›็ป„ไปถ็š„ๅ›พๆ ‡ๅ’Œไบคไบ’็ฌฆๅˆ ant-design/x ็š„่ฎพ่ฎก่ง„่Œƒ๏ผŒไปŽ่€Œๆๅ‡ไบ†ๆ•ดไฝ“็š„็”จๆˆทไฝ“้ชŒๅ’Œไปฃ็ ไธ€่‡ดๆ€งใ€‚

Highlights

  • ็ป„ไปถๆ›ฟๆข: ๅฐ† HighlightCode ๅ’Œ Mermaid ๆ’ไปถไธญ็š„ๆŒ‰้’ฎ็ป„ๆ›ฟๆขไธบ็ปŸไธ€็š„ Actions ็ป„ไปถใ€‚
  • ็ฌฆๅˆ่ง„่Œƒ: ่งฃๅ†ณ HighlightCode ๅ’Œ Mermaid ๅทฅๅ…ทๆ ๅ›พๆ ‡ไธ็ฌฆๅˆ ant-design/x ่ง„่Œƒ็š„้—ฎ้ข˜ใ€‚
  • ไปฃ็ ไผ˜ๅŒ–: ็ฎ€ๅŒ–ไบ†็›ธๅ…ณไปฃ็ ๏ผŒๆ้ซ˜ไบ†็ป„ไปถ็š„ไธ€่‡ดๆ€งๅ’Œๅฏ็ปดๆŠคๆ€งใ€‚
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with ๐Ÿ‘ and ๐Ÿ‘Ž on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. โ†ฉ

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

ๆœฌๆฌก PR ๅฐ†ๆŒ‰้’ฎ็ป„้‡ๆž„ไธบไฝฟ็”จๆ–ฐ็š„ Actions ็ป„ไปถ๏ผŒ่ฟ™ๅฏนไบŽไฟๆŒไธ€่‡ดๆ€งๆ˜ฏๅพˆๅฅฝ็š„ใ€‚็„ถ่€Œ๏ผŒๅฎž็ŽฐไธŠๅญ˜ๅœจไธ€ไบ›้—ฎ้ข˜ใ€‚ๅœจ HighlightCode ๅ’Œ Mermaid ็ป„ไปถไธญ๏ผŒไธ“็”จ็š„ Actions.Copy ็ป„ไปถ่ขซ้”™่ฏฏๅœฐไฝฟ็”จ๏ผŒๅฏผ่‡ดๅ…ถๅคๅˆถ็ฉบๅญ—็ฌฆไธฒๅนถไบง็”Ÿไปคไบบๅ›ฐๆƒ‘็š„ UI ่กŒไธบใ€‚ๅœจ Mermaid ็ป„ไปถไธญ๏ผŒๆ“ไฝœ่ขซๅˆ†ๆ•ฃๅœจไธ€ไธช็‹ฌ็ซ‹็š„ Actions.Copy ๅ’Œไธ€ไธช Actions ็ป„ไธญ๏ผŒ่ฟ™ไธไธ€่‡ดใ€‚ๆญคๅค–๏ผŒๅ…ถไธญไธ€ไธชๆ“ไฝœ๏ผˆzoomReset๏ผ‰ไฝฟ็”จ actionRender ๅ›ž้€€ๅˆฐๆ—ง็š„ๅฎž็Žฐๆ–นๅผ๏ผŒ่ฟ™ๅฏ่ƒฝไผš็ ดๅ่ง†่ง‰ไธ€่‡ดๆ€งใ€‚ๆˆ‘ๅทฒ็ปๆไพ›ไบ†ไฟฎๅค่ฟ™ไบ›้—ฎ้ข˜็š„ๅปบ่ฎฎใ€‚

- ไฝฟ็”จ `Actions.Copy` ็ป„ไปถ็›ดๆŽฅๅค„็†ๅคๅˆถๅŠŸ่ƒฝ
- ็งป้™ค `message` ๅ’Œ `useLocale` ็›ธๅ…ณไปฃ็ 
@codecov
Copy link

codecov bot commented Nov 11, 2025

Bundle Report

Changes will increase total bundle size by 2.78MB (203.25%) โฌ†๏ธโš ๏ธ, exceeding the configured threshold of 5%.

Bundle name Size Change
x-markdown-array-push 4.15MB 2.78MB (203.25%) โฌ†๏ธโš ๏ธ

Affected Assets, Files, and Routes:

view changes for bundle: x-markdown-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
mermaid.min.js (New) 4.15MB 4.15MB 100.0% ๐Ÿš€
latex.min.js (Deleted) -268.76kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_AMS-Regular.*.ttf (Deleted) -63.63kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-Regular.*.ttf (Deleted) -53.58kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-Bold.*.ttf (Deleted) -51.34kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-Italic.*.ttf (Deleted) -33.58kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_AMS-Regular.*.woff (Deleted) -33.52kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-BoldItalic.*.ttf (Deleted) -32.97kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Math-Italic.*.ttf (Deleted) -31.31kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Math-BoldItalic.*.ttf (Deleted) -31.2kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-Regular.*.woff (Deleted) -30.77kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-Bold.*.woff (Deleted) -29.91kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_AMS-Regular.*.woff2 (Deleted) -28.08kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Typewriter-Regular.*.ttf (Deleted) -27.56kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-Regular.*.woff2 (Deleted) -26.27kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-Bold.*.woff2 (Deleted) -25.32kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_SansSerif-Bold.*.ttf (Deleted) -24.5kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
latex.min.css (Deleted) -24.32kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_SansSerif-Italic.*.ttf (Deleted) -22.36kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-Italic.*.woff (Deleted) -19.68kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Fraktur-Bold.*.ttf (Deleted) -19.58kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Fraktur-Regular.*.ttf (Deleted) -19.57kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_SansSerif-Regular.*.ttf (Deleted) -19.44kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-BoldItalic.*.woff (Deleted) -19.41kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Math-Italic.*.woff (Deleted) -18.75kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Math-BoldItalic.*.woff (Deleted) -18.67kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-Italic.*.woff2 (Deleted) -16.99kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Main-BoldItalic.*.woff2 (Deleted) -16.78kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Script-Regular.*.ttf (Deleted) -16.65kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Math-Italic.*.woff2 (Deleted) -16.44kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Math-BoldItalic.*.woff2 (Deleted) -16.4kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Typewriter-Regular.*.woff (Deleted) -16.03kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_SansSerif-Bold.*.woff (Deleted) -14.41kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_SansSerif-Italic.*.woff (Deleted) -14.11kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Typewriter-Regular.*.woff2 (Deleted) -13.57kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Fraktur-Bold.*.woff (Deleted) -13.3kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Fraktur-Regular.*.woff (Deleted) -13.21kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Caligraphic-Bold.*.ttf (Deleted) -12.37kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Caligraphic-Regular.*.ttf (Deleted) -12.34kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_SansSerif-Regular.*.woff (Deleted) -12.32kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size1-Regular.*.ttf (Deleted) -12.23kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_SansSerif-Bold.*.woff2 (Deleted) -12.22kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_SansSerif-Italic.*.woff2 (Deleted) -12.03kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size2-Regular.*.ttf (Deleted) -11.51kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Fraktur-Bold.*.woff2 (Deleted) -11.35kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Fraktur-Regular.*.woff2 (Deleted) -11.32kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Script-Regular.*.woff (Deleted) -10.59kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size4-Regular.*.ttf (Deleted) -10.36kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_SansSerif-Regular.*.woff2 (Deleted) -10.34kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Script-Regular.*.woff2 (Deleted) -9.64kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Caligraphic-Bold.*.woff (Deleted) -7.72kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Caligraphic-Regular.*.woff (Deleted) -7.66kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size3-Regular.*.ttf (Deleted) -7.59kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Caligraphic-Bold.*.woff2 (Deleted) -6.91kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Caligraphic-Regular.*.woff2 (Deleted) -6.91kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size1-Regular.*.woff (Deleted) -6.5kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size2-Regular.*.woff (Deleted) -6.19kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size4-Regular.*.woff (Deleted) -5.98kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size1-Regular.*.woff2 (Deleted) -5.47kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size2-Regular.*.woff2 (Deleted) -5.21kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size4-Regular.*.woff2 (Deleted) -4.93kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size3-Regular.*.woff (Deleted) -4.42kB 0 bytes -100.0% ๐Ÿ—‘๏ธ
static/KaTeX_Size3-Regular.*.woff2 (Deleted) -3.62kB 0 bytes -100.0% ๐Ÿ—‘๏ธ

@Div627
Copy link
Contributor

Div627 commented Nov 21, 2025

ๆต‹่ฏ•็”จไพ‹ๆฒกๆœ‰้€š่ฟ‡

- ๅฐ†ๆŒ‰้’ฎๅ็งฐไปŽๅฐๅ†™ๆ”นไธบ้ฆ–ๅญ—ๆฏๅคงๅ†™
- ไฝฟ็”จ label ๆ›ฟไปฃ role ่ฟ›่กŒๅ…ƒ็ด ๆŸฅๆ‰พ
- ็ฎ€ๅŒ–้‡็ฝฎๆŒ‰้’ฎ็š„ๅฎž็Žฐๆ–นๅผ
@Samoy
Copy link
Contributor Author

Samoy commented Nov 21, 2025

ๆต‹่ฏ•็”จไพ‹ๆฒกๆœ‰้€š่ฟ‡

ไปฅไฟฎๆ”นๆต‹่ฏ•็”จไพ‹ไปฅ้€‚้…ๆ–ฐ็š„ๅฎž็Žฐๆ–นๅผ

@Samoy
Copy link
Contributor Author

Samoy commented Nov 21, 2025

#1283

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

โœ… All modified and coverable lines are covered by tests.
โœ… Project coverage is 94.17%. Comparing base (b755ae9) to head (d0b024a).
โš ๏ธ Report is 1 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1320      +/-   ##
==========================================
+ Coverage   94.07%   94.17%   +0.10%     
==========================================
  Files         144      144              
  Lines        3710     3693      -17     
  Branches     1041     1041              
==========================================
- Hits         3490     3478      -12     
+ Misses        218      213       -5     
  Partials        2        2              

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

๐Ÿš€ New features to boost your workflow:
  • โ„๏ธ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants