-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
mdx-code-block doesn't work when indented #10220
Copy link
Copy link
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: markdownRelated to Markdown parsing or syntaxRelated to Markdown parsing or syntax
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: markdownRelated to Markdown parsing or syntaxRelated to Markdown parsing or syntax
Type
Fields
Give feedbackNo fields configured for issues without a type.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
I'm using Crowdin to translate my Docaurus MDX documents. In order to make the text displayed correctly on Crowdin, I added
mdx-code-blockto my document according to the official document to convert the text into a code block.According to my research on some official documents, this is probably because I didn't install
@docausaurus/utils, but the document does not clearly state that I need to install this package. If possible, please improve the content of this part of the document.Here is my source code:
Reproducible demo
No response
Steps to reproduce
Expected behavior
According to the description of the document, the content of the
mdx-code-blockcode block will be automatically recognized as JSX content.Actual behavior
However…
Your environment
Self-service