format: md
front matter doesn't work
#10628
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
The docs say that adding
format: md
front matter makes the doc to be CommonMark format, but it doesn't work.After looking into the code, it should be
It reads the
mdx
in front matter firstdocusaurus/packages/docusaurus-mdx-loader/src/utils.ts
Lines 99 to 105 in a4fa4c2
docusaurus/packages/docusaurus-mdx-loader/src/processor.ts
Lines 266 to 285 in a4fa4c2
But the docs say it's
format
in front matter.docusaurus/website/docs/guides/markdown-features/markdown-features-react.mdx
Line 251 in a4fa4c2
docusaurus/website/docs/guides/markdown-features/markdown-features-intro.mdx
Line 44 in a4fa4c2
Should it be fixed in the code or in the docs?
Reproducible demo
No response
Steps to reproduce
format: md
front matter in.mdx
fileExpected behavior
Doc changes to CommonMark syntax.
Actual behavior
Doc stay with JSX syntax
Your environment
Self-service
The text was updated successfully, but these errors were encountered: