From 4aa60cf7ba3a2774d10a54026dbc195f52f3bd77 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 31 Oct 2024 11:14:15 +0100 Subject: [PATCH] fix frontMatter.mdx.format docs --- .../docs/guides/markdown-features/markdown-features-intro.mdx | 2 +- .../docs/guides/markdown-features/markdown-features-react.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/guides/markdown-features/markdown-features-intro.mdx b/website/docs/guides/markdown-features/markdown-features-intro.mdx index 4fcaef5e32cf..84cd2c53add4 100644 --- a/website/docs/guides/markdown-features/markdown-features-intro.mdx +++ b/website/docs/guides/markdown-features/markdown-features-intro.mdx @@ -41,7 +41,7 @@ The MDX compiler supports [2 formats](https://mdxjs.com/packages/mdx/#optionsfor By default, **Docusaurus v3 uses the MDX format for all files** (including `.md` files) for historical reasons. -It is possible to **opt-in for CommonMark** using the [`siteConfig.markdown.format`](../../api/docusaurus.config.js.mdx#markdown) setting or the `format: md` front matter. +It is possible to **opt-in for CommonMark** using the [`siteConfig.markdown.format`](../../api/docusaurus.config.js.mdx#markdown) setting or the `mdx.format: md` front matter. :::tip how to use CommonMark diff --git a/website/docs/guides/markdown-features/markdown-features-react.mdx b/website/docs/guides/markdown-features/markdown-features-react.mdx index 0c63b0b3a966..dd9d0e0f5fba 100644 --- a/website/docs/guides/markdown-features/markdown-features-react.mdx +++ b/website/docs/guides/markdown-features/markdown-features-react.mdx @@ -248,7 +248,7 @@ Some valid CommonMark features won't work with MDX ([more info](https://mdxjs.co Docusaurus v3 makes it possible to opt-in for a less strict, standard [CommonMark](https://commonmark.org/) support with the following options: -- The `format: md` front matter +- The `mdx.format: md` front matter - The `.md` file extension combined with the `siteConfig.markdown.format: "detect"` configuration This feature is **experimental** and currently has a few [limitations](https://github.com/facebook/docusaurus/issues/9092).