From 3c0d6b12eba5faf3cda1e49334ac3b10d9de2470 Mon Sep 17 00:00:00 2001 From: Tatsunori Uchino Date: Sat, 25 May 2024 23:23:38 +0900 Subject: [PATCH] docs: backport #10173 to v3.3 --- .../markdown-features-intro.mdx | 63 ++++++++++++------- 1 file changed, 39 insertions(+), 24 deletions(-) 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..52a6866914b9 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,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 */} +````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 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. + +:::