Documentation ¶
Overview ¶
Package mdtoc generates a table of contents for an existing markdown document
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrExistingToc is thrown if the provided document already contains a mdtoc-generated // table of contents ErrExistingToc = errors.New("document has existing table of contents") // Version is the current library/CLI version //go:embed VERSION Version string // DefaultConfig defines the default configuration settings // // These field values will align with the default flag values from the CLI DefaultConfig = &Config{ Force: false, WithTocHeading: false, TocHeading: DefaultTocHeading, } // DefaultTocHeading is the default heading applied when enabled DefaultTocHeading = "Table of Contents" )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.