-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat: better separation of mdx content and headings support #5467
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
cc @nodejs/website for reviews |
AugustinMauroy
left a comment
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.
TOC part is LTGM
shanpriyan
left a comment
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.
LGTM!
bmuenzenmeyer
left a comment
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.
only had time for a quick read - couldn't run the code yet.
one npm nit and one import lint nit
|
It looks like Storybook broke with Next.js 13.4.8: storybookjs/storybook#23287 |
|
I'm downgrading Next.js back to 13.4.7 on this PR for the meantime. |
|
Storybook fixed their bug, we can upgrade to Next.sj 13.4.8 https://github.com/storybookjs/storybook/releases/tag/v7.0.26 |
Description
This PR introduces a better separation of the
MDXRemoteprops on thenext.dynamic.mjsgeneration; It introduces support to theVFilemetadata through theunifiedpipeline, which can be used for the Remark Plugins that mutate theVFilemeta, such asremark-frontmatter,remark-headings.And ultimately does a better separation of the
theme.tsxwith themdxProvidercontent.Lastly, it adds support to Headings for the TOC generation through
remark-headings