diff --git a/website/docs/guides/markdown-features/markdown-features-intro.mdx b/website/docs/guides/markdown-features/markdown-features-intro.mdx index b6bcd756beffd..4f282614dc7ac 100644 --- a/website/docs/guides/markdown-features/markdown-features-intro.mdx +++ b/website/docs/guides/markdown-features/markdown-features-intro.mdx @@ -181,42 +181,57 @@ Markdown quotes are beautifully styled: Markdown can embed HTML elements, and [`details`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) HTML elements are beautifully styled: -```md +{/* prettier-ignore */} +````mdx ### Details element example
Toggle me! -
-
This is the detailed content
-
-
- - Nested toggle! Some surprise inside... - -
😲😲😲😲😲
-
-
+ + This is the detailed content + + ```js + console.log("Markdown features including the code block are available"); + ``` + + You can use Markdown here including **bold** and _italic_ text, and [inline link](https://docusaurus.io) +
+ Nested toggle! Some surprise inside... + + 😲😲😲😲😲 +
-``` +```` -```mdx-code-block +````mdx-code-block

Details element example

Toggle me! -
-
This is the detailed content
-
-
- - Nested toggle! Some surprise inside... - -
😲😲😲😲😲
-
-
+ + This is the detailed content + + ```js + console.log("Markdown features including the code block are available"); + ``` + + You can use Markdown here including **bold** and _italic_ text, and [inline link](https://docusaurus.io) +
+ Nested toggle! Some surprise inside... + + 😲😲😲😲😲 +
-``` +```` + +:::info + +- You should not break lines between the starting or ending tag of the `` element and its content or an extra `

` element is inserted. +- Blank lines between the `

` element and the first paragraph of the detailed content are optional in Docusaurus but strongly recommended to ensure MDX portability with other site generators. +- Blank lines between the nested `
` element and the paragraphs just around it are optional. + +:::