pandoc/test/command/toc.md
damon-sava-stanley 01ec1ac43a
Put id attributes on TOC entries #7907 (#7913)
Naming scheme of id is "toc-" + id of linked to header/section.
In Shared, will effect HTML, Markdown, Powerpoint, and RTF.
2022-02-11 21:37:00 -08:00

338 B

% 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}

# A

## b

# B

## b

::: interior
# C

## cc

# D
:::

::: blue
# E

## e
:::