Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Doc ¶
type Doc struct { // Name is the name of the header of this section Name string // Level is the level of the header Level int // Content is a list of the markdown nodes that came after this header, and before any other header Content []ast.Node // Children is a list of headers that came after this header and are a lower level than this header Children []*Doc // Parent is the higher-level header that appeared in the document before this one. Parent *Doc }
Doc is a convenience type that sorts a markdown document by headers.
Click to show internal directories.
Click to hide internal directories.