-
Notifications
You must be signed in to change notification settings - Fork 386
feat(doc-core): support code title space #3744
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
🦋 Changeset detectedLatest commit: 7521268 The changes in this PR will be included in the next version bump. This PR includes changesets to release 208 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…o feat/code-title-space
a915ac6 to
d7eb34b
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #3744 +/- ##
==========================================
+ Coverage 57.59% 58.18% +0.58%
==========================================
Files 672 643 -29
Lines 17794 17185 -609
Branches 3876 3750 -126
==========================================
- Hits 10249 9999 -250
+ Misses 6934 6586 -348
+ Partials 611 600 -11 ☔ View full report in Codecov by Sentry. |
…o feat/code-title-space
007dea9 to
f2931fc
Compare
Summary
🤖 Generated by Copilot at a915ac6
This pull request adds a new feature to the
@modern-js/doc-corepackage that allows users to specify code titles in the MDX code blocks. It also updates the dependency version of@modern-js/mdx-rs-bindingand enables theexperimentalMdxRsoption for the@modern-js/doc-toolsdocumentation site. These changes improve the functionality, performance, and appearance of the code blocks in the documentation.Details
🤖 Generated by Copilot at a915ac6
@modern-js/doc-corepackage (link)@modern-js/mdx-rs-bindingto use latest features and bug fixes ofmdx-rslibrary (link)rehypePluginCodeMetaplugin to extract meta information from code blocks and attach it to code node properties (link, link)rehypePluginCodeMetaplugin incodeMeta.tsfile (link)preWrapper.tsfile as it is no longer needed (link)CodePropsinterface and use it forCodecomponent props incode.tsxfile (link, link)classNameattribute tocodeelement inCodecomponent for styling (link)Precomponent as a custom MDX component forpreelement inindex.tsxfile (link, link)Precomponent andparseTitleFromMetahelper function inpre.tsxfile (link)experimentalMdxRsoption inmodern.config.tsfile for@modern-js/doc-toolsdocumentation site (link)Related Issue
Checklist
pnpm run change.