A Yarner plugin to generate a Table of Content.
Binaries
PATH
environmental variableUsing cargo
```
cargo install yarner-toc ```
Add a section plugin.toc
to your Yarner.toml
:
toml
[plugin.toc]
The plugin allows for different options, which are all optional:
toml
[plugin.toc]
placeholder = "[[_TOC_]]"
min-level = 2
max-level = 5
| Option | Details | Default |
|--------------------|-------------------------------------|-------------|
| placeholder
| Placeholder to replace with the TOC | [[_TOC_]]
|
| min-level
| Minimum heading level to include | 2
|
| max-level
| Maximum heading level to include | 5
|