Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ StartLevel: 2, EndLevel: 3, Ordered: false, }
DefaultConfig is the default ToC configuration.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Heading start level to include in the table of contents, starting // at h1 (inclusive). StartLevel int // Heading end level, inclusive, to include in the table of contents. // Default is 3, a value of -1 will include everything. EndLevel int // Whether to produce a ordered list or not. Ordered bool }
Click to show internal directories.
Click to hide internal directories.