pandoc/test/command/toc.md

48 lines
338 B
Markdown
Raw Normal View History

2019-12-17 11:59:29 -08:00
```
% pandoc -s --toc -t markdown
# A
## b
# B
## b
::: interior
# C
## cc
# D
:::
::: blue
# E
## e
:::
^D
- [A](#a){#toc-a}
- [b](#b){#toc-b}
- [B](#b-1){#toc-b-1}
- [b](#b-2){#toc-b-2}
- [E](#e){#toc-e}
- [e](#e-1){#toc-e-1}
2019-12-17 11:59:29 -08:00
# A
2019-12-17 11:59:29 -08:00
## b
2019-12-17 11:59:29 -08:00
# B
2019-12-17 11:59:29 -08:00
## b
2019-12-17 11:59:29 -08:00
::: interior
# C
2019-12-17 11:59:29 -08:00
## cc
2019-12-17 11:59:29 -08:00
# D
2019-12-17 11:59:29 -08:00
:::
::: blue
# E
2019-12-17 11:59:29 -08:00
## e
2019-12-17 11:59:29 -08:00
:::
```