-
Notifications
You must be signed in to change notification settings - Fork 26.2k
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
Mdx docs improved after changing things which were wrong #36067
Conversation
docs/advanced-features/using-mdx.md
Outdated
@@ -64,6 +85,14 @@ The following steps outline how to setup `@next/mdx` in your Next.js project: | |||
- package.json | |||
``` | |||
|
|||
## next-mdx-remote |
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.
These two are intentionally not mentioned as they're recommending to eval
external sources that are transformed into JS.
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.
Remove them from this PR.
@@ -98,6 +119,26 @@ author: 'Rich Haines' | |||
# My MDX page | |||
``` | |||
|
|||
```js |
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.
This code block shows how to add remarkFrontmatter but the line above it shows how to add metadata using export const meta
which does not require any extra configuration. Maybe this can be in it's own section?
docs/advanced-features/using-mdx.md
Outdated
@@ -208,5 +249,8 @@ If you use it across the site you may want to add the provider to `_app.js` so a | |||
|
|||
- [MDX](https://mdxjs.com) | |||
- [`@next/mdx`](https://www.npmjs.com/package/@next/mdx) | |||
- [next-mdx-remote](https://github.com/hashicorp/next-mdx-remote) |
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.
Same as my earlier comment.
Documentation / Examples
yarn lint
Same as Improvements to the MDX Docs and replaced a leftover reference to babel #35332 but fixes the issues mentioned