mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 12:07:58 +02:00
58 lines
692 B
Text
58 lines
692 B
Text
---
|
|
toc_min_heading_level: 2
|
|
toc_max_heading_level: 6
|
|
---
|
|
|
|
Test the TOC behavior of a real-world MD doc with valid headings
|
|
|
|
---
|
|
|
|
## lvl 2
|
|
|
|
### lvl 3
|
|
|
|
#### lvl 4
|
|
|
|
##### lvl 5
|
|
|
|
###### lvl 6
|
|
|
|
## lvl 2
|
|
|
|
### lvl 3
|
|
|
|
#### lvl 4
|
|
|
|
##### lvl 5
|
|
|
|
###### lvl 6
|
|
|
|
---
|
|
|
|
INLINE:
|
|
|
|
```mdx-code-block
|
|
import BrowserWindow from '@site/src/components/BrowserWindow';
|
|
|
|
import TOCInline from '@theme/TOCInline';
|
|
|
|
<BrowserWindow>
|
|
|
|
<TOCInline toc={toc} minHeadingLevel={2} maxHeadingLevel={6} />
|
|
|
|
</BrowserWindow>
|
|
```
|
|
|
|
---
|
|
|
|
COLLAPSIBLE:
|
|
|
|
```mdx-code-block
|
|
import TOCCollapsible from '@theme/TOCCollapsible';
|
|
|
|
<BrowserWindow>
|
|
|
|
<TOCCollapsible toc={toc} minHeadingLevel={2} maxHeadingLevel={6} />
|
|
|
|
</BrowserWindow>
|
|
```
|