From badc0ded3b2bcf86b450ad36e6067e49266f67b7 Mon Sep 17 00:00:00 2001 From: Zwyx <29386932+Zwyx@users.noreply.github.com> Date: Tue, 22 Nov 2022 20:58:51 +0800 Subject: [PATCH] Fix code blocks Two code blocks were merged together because of errors with the three back ticks --- .../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 f76ec875f7b0..9f01004a28ac 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):