Skip to content

Commit

Permalink
docs: Mention remark-mdx-frontmatter in frontmatter docs (#59238)
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing authored Dec 22, 2023
1 parent b57a2c8 commit 34a5ef2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ export default withMDX(nextConfig)
Frontmatter is a YAML like key/value pairing that can be used to store data about a page. `@next/mdx` does **not** support frontmatter by default, though there are many solutions for adding frontmatter to your MDX content, such as:

- [remark-frontmatter](https://github.com/remarkjs/remark-frontmatter)
- [remark-mdx-frontmatter](https://github.com/remcohaszing/remark-mdx-frontmatter)
- [gray-matter](https://github.com/jonschlinkert/gray-matter).

To access page metadata with `@next/mdx`, you can export a metadata object from within the `.mdx` file:
Expand Down

0 comments on commit 34a5ef2

Please sign in to comment.