From cfc6d3d79e3c6a0959d2f0cbc67a3c730cb9540a Mon Sep 17 00:00:00 2001 From: Alex <29386932+Zwyx@users.noreply.github.com> Date: Tue, 22 Nov 2022 15:00:33 +0800 Subject: [PATCH] Fix code blocks Two code blocks were merged together because of errors with the three backticks. --- .../guides/markdown-features/markdown-features-admonitions.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/guides/markdown-features/markdown-features-admonitions.mdx b/website/docs/guides/markdown-features/markdown-features-admonitions.mdx index f76ec875f7b0e..9f01004a28ac8 100644 --- a/website/docs/guides/markdown-features/markdown-features-admonitions.mdx +++ b/website/docs/guides/markdown-features/markdown-features-admonitions.mdx @@ -263,7 +263,7 @@ By default, the theme doesn't know what do to with custom admonition keywords su If you registered a new admonition type `my-custom-admonition` via the following config: -````js title="docusaurus.config.js" +```js title="docusaurus.config.js" module.exports = { // ... presets: [ @@ -282,6 +282,7 @@ module.exports = { ], ], }; +``` You can provide the corresponding React component for `:::my-custom-admonition` by creating the following file (unfortunately, since it's not a React component file, it's not swizzlable):