mktoc
Markdown Table of Content generator
- About - Installation - Cargo - Binary - Usage - Update Markdown file - Inline config - Command line - Environment configuration - Auto-run with VSCode - Performance - Contributing - Where to start? - Tooling - Install dev build - License
mktoc
parses markdown files and generates a Table Of Content linking all headlines up to heading level 6 deep, or as specified by command line arguments, environment variables, or inline JSON config (see Usage).
mktoc
can be installed using Cargo, the Rust package manager.
Installation
sh
$ cargo install mktoc
Update
sh
$ cargo install --force mktoc
Binaries are not available yet. If you know how releasing binaries with Rust can be implemented, please let me know!
Add the following HTML comment into the Markdown file where the Table of Contents should be rendered.
html
<!-- BEGIN mktoc -->
<!-- END mktoc -->
Everything between those comments will be replaced!
Starting with version 3.0.0 it's possible to set values in-line which is great when collaborating with teams who may have individual settings.
```html