From 34a5ef2189144d07a29d534fe611e8d512739ff6 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Fri, 22 Dec 2023 23:23:28 +0100 Subject: [PATCH] docs: Mention remark-mdx-frontmatter in frontmatter docs (#59238) --- .../01-building-your-application/07-configuring/05-mdx.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx b/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx index 3eca0473bcc46..368d48843b772 100644 --- a/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx +++ b/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx @@ -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: