mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 00:57:53 +02:00
docs(v2): wrap mdx usage in mdx-code-block (#5007)
This commit is contained in:
parent
871e090ed8
commit
c63295a253
4 changed files with 12 additions and 0 deletions
|
@ -52,6 +52,7 @@ With `{#custom-id}` syntax you can set your own header id.
|
|||
|
||||
This will render in the browser as follows:
|
||||
|
||||
```mdx-code-block
|
||||
import BrowserWindow from '@site/src/components/BrowserWindow';
|
||||
|
||||
<BrowserWindow url="http://localhost:3000">
|
||||
|
@ -81,3 +82,4 @@ The headers are well-spaced so that the hierarchy is clear.
|
|||
With <code>{#custom-id}</code> syntax you can set your own header id.
|
||||
|
||||
</BrowserWindow>
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue