Crate mktoc

Source

Structs§

Config
Represents the configuration options for mktoc

Functions§

add_toc
add the generated ToC into the original file
generate_toc
parses a string and extracts all headlines to build a table of contents
make_toc
takes a file path as String and returns a table of contents for the file