mktoc
Blazingly fast Markdown Table of Content generator
- mktoc
- About
- Installation
- Cargo
- Binary
- Usage
- mktoc [--write]
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. A start depth and maximum depth can be specified.
mktoc
can be installed using Cargo, the Rust package manager.
sh
$ cargo install mktoc
Binaries are actually not available yet. If you know how releasing binaries with Rust can be implemented, please let me know!
Specify --write
to overwrite the given file, otherwise the modified content is written to stdout.
```
$ mktoc --write README.md $ mktoc --write -m 2 -M 4 README.md ```
See mktoc --help
for list of all arguments and flags.
``` mktoc 1.1.0
USAGE:
mktoc [FLAGS] [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information -w, --write
OPTIONS:
-M, --max-depth
ARGS:
mktoc
is fast but can probably be even faster! Pull Requests and bug reports are appreciated!
MIT, see LICENSE file.