pandoc/test/command/toc.md
Jan Tojnar e9c0f9f97b
Markdown writer: Cleaner (code)blocks with single class (#7242)
When a block only has a single class and no other attributes,
it is not necessary to wrap the class attribute in curly braces –
the class name can be placed after the opening mark as is.

This will result in bit cleaner output when pandoc is used
as a markdown pretty-printer.
2021-04-25 10:36:06 -07:00

47 lines
284 B
Markdown

```
% pandoc -s --toc -t markdown
# A
## b
# B
## b
::: interior
# C
## cc
# D
:::
::: blue
# E
## e
:::
^D
- [A](#a)
- [b](#b)
- [B](#b-1)
- [b](#b-2)
- [E](#e)
- [e](#e-1)
# A
## b
# B
## b
::: interior
# C
## cc
# D
:::
::: blue
# E
## e
:::
```