Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Indent = "\t"
Indent string used for nesting. See `-indent`.
Functions ¶
This section is empty.
Types ¶
type Document ¶
func NewDocFromPath ¶
func NewDocFromString ¶
func (Document) SuggestTOC ¶
SuggestTOC looks for the first heading below a root heading. A root heading has minimum depth and the depth must only be used once. e.g.
# Name --here-- ## A ## B
type Heading ¶
func NewHeadingATX ¶
func (Heading) GetMarkdown ¶
GetMarkdown returns the heading line of the TOC formatted to markdown
Click to show internal directories.
Click to hide internal directories.