Documentation
¶
Index ¶
Constants ¶
View Source
const ( // StartTOC is the opening tag for the table of contents. StartTOC = "<!-- toc -->" // EndTOC is the tag that marks the end of the TOC. EndTOC = "<!-- /toc -->" // MaxHeaderDepth is the default maximum header depth for ToC generation. MaxHeaderDepth = 6 )
Variables ¶
This section is empty.
Functions ¶
func GenerateTOC ¶
GenerateTOC parses a document and returns its TOC.
Types ¶
Click to show internal directories.
Click to hide internal directories.