mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
docs: fix unclosed admonition code block (#8363)
This commit is contained in:
parent
4b11c57f7e
commit
412d2db011
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue