diff --git a/website/docs/guides/markdown-features/markdown-features-intro.mdx b/website/docs/guides/markdown-features/markdown-features-intro.mdx index 52a6866914b9..4fcaef5e32cf 100644 --- a/website/docs/guides/markdown-features/markdown-features-intro.mdx +++ b/website/docs/guides/markdown-features/markdown-features-intro.mdx @@ -230,8 +230,6 @@ Markdown can embed HTML elements, and [`details`](https://developer.mozilla.org/ :::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. +You may want to keep your `` on a single line. Keep in mind that [MDX creates extra HTML `

` paragraphs for line breaks.](https://mdxjs.com/migrating/v2/#jsx). When in doubt, use the [MDX playground](https://mdxjs.com/playground/) to troubleshoot `

` rendering problems. ::: diff --git a/website/versioned_docs/version-3.3.2/guides/markdown-features/markdown-features-intro.mdx b/website/versioned_docs/version-3.3.2/guides/markdown-features/markdown-features-intro.mdx index b6bcd756beff..4fcaef5e32cf 100644 --- a/website/versioned_docs/version-3.3.2/guides/markdown-features/markdown-features-intro.mdx +++ b/website/versioned_docs/version-3.3.2/guides/markdown-features/markdown-features-intro.mdx @@ -181,42 +181,55 @@ 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 */} +````md ### 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 may want to keep your `` on a single line. Keep in mind that [MDX creates extra HTML `

` paragraphs for line breaks.](https://mdxjs.com/migrating/v2/#jsx). When in doubt, use the [MDX playground](https://mdxjs.com/playground/) to troubleshoot `

` rendering problems. + +::: diff --git a/website/versioned_docs/version-3.4.0/guides/markdown-features/markdown-features-intro.mdx b/website/versioned_docs/version-3.4.0/guides/markdown-features/markdown-features-intro.mdx index 52a6866914b9..4fcaef5e32cf 100644 --- a/website/versioned_docs/version-3.4.0/guides/markdown-features/markdown-features-intro.mdx +++ b/website/versioned_docs/version-3.4.0/guides/markdown-features/markdown-features-intro.mdx @@ -230,8 +230,6 @@ Markdown can embed HTML elements, and [`details`](https://developer.mozilla.org/ :::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. +You may want to keep your `` on a single line. Keep in mind that [MDX creates extra HTML `

` paragraphs for line breaks.](https://mdxjs.com/migrating/v2/#jsx). When in doubt, use the [MDX playground](https://mdxjs.com/playground/) to troubleshoot `

` rendering problems. :::