Versions in this module Expand all Collapse all v1 v1.0.2 Jul 19, 2021 v1.0.1 Jul 19, 2021 Changes in this version + func AppendChild(parent Node, child Node) + func Print(dst io.Writer, doc Node) + func PrintWithPrefix(w io.Writer, doc Node, prefix string) + func RemoveFromTree(n Node) + func ToString(doc Node) string + func WalkFunc(n Node, f NodeVisitorFunc) + type Aside struct + type Attribute struct + Attrs map[string][]byte + Classes [][]byte + ID []byte + type BlockQuote struct + type Callout struct + ID []byte + type Caption struct + type CaptionFigure struct + HeadingID string + type CellAlignFlags int + const TableAlignmentCenter + const TableAlignmentLeft + const TableAlignmentRight + func (a CellAlignFlags) String() string + type Citation struct + Destination [][]byte + Suffix [][]byte + Type []CitationTypes + type CitationTypes int + const CitationTypeInformative + const CitationTypeNone + const CitationTypeNormative + const CitationTypeSuppressed + type Code struct + type CodeBlock struct + FenceChar byte + FenceLength int + FenceOffset int + Info []byte + IsFenced bool + type Container struct + Children []Node + Content []byte + Literal []byte + Parent Node + func (c *Container) AsContainer() *Container + func (c *Container) AsLeaf() *Leaf + func (c *Container) GetChildren() []Node + func (c *Container) GetParent() Node + func (c *Container) SetChildren(newChildren []Node) + func (c *Container) SetParent(newParent Node) + type CrossReference struct + Destination []byte + type Del struct + type Document struct + type DocumentMatter struct + Matter DocumentMatters + type DocumentMatters int + const DocumentMatterBack + const DocumentMatterFront + const DocumentMatterMain + const DocumentMatterNone + type Emph struct + type Footnotes struct + type HTMLBlock struct + type HTMLSpan struct + type Hardbreak struct + type Heading struct + HeadingID string + IsSpecial bool + IsTitleblock bool + Level int + type HorizontalRule struct + type Image struct + Destination []byte + Title []byte + type Index struct + ID string + Item []byte + Primary bool + Subitem []byte + type Leaf struct + Content []byte + Literal []byte + Parent Node + func (l *Leaf) AsContainer() *Container + func (l *Leaf) AsLeaf() *Leaf + func (l *Leaf) GetChildren() []Node + func (l *Leaf) GetParent() Node + func (l *Leaf) SetChildren(newChildren []Node) + func (l *Leaf) SetParent(newParent Node) + type Link struct + AdditionalAttributes []string + DeferredID []byte + Destination []byte + Footnote Node + NoteID int + Title []byte + type List struct + BulletChar byte + Delimiter byte + IsFootnotesList bool + ListFlags ListType + RefLink []byte + Start int + Tight bool + type ListItem struct + BulletChar byte + Delimiter byte + IsFootnotesList bool + ListFlags ListType + RefLink []byte + Tight bool + type ListType int + const ListItemBeginningOfList + const ListItemContainsBlock + const ListItemEndOfList + const ListTypeDefinition + const ListTypeOrdered + const ListTypeTerm + type Math struct + type MathBlock struct + type Node interface + AsContainer func() *Container + AsLeaf func() *Leaf + GetChildren func() []Node + GetParent func() Node + SetChildren func(newChildren []Node) + SetParent func(newParent Node) + func GetFirstChild(n Node) Node + func GetLastChild(n Node) Node + func GetNextNode(n Node) Node + func GetPrevNode(n Node) Node + type NodeVisitor interface + Visit func(node Node, entering bool) WalkStatus + type NodeVisitorFunc func(node Node, entering bool) WalkStatus + func (f NodeVisitorFunc) Visit(node Node, entering bool) WalkStatus + type NonBlockingSpace struct + type Paragraph struct + type Softbreak struct + type Strong struct + type Subscript struct + type Superscript struct + type Table struct + type TableBody struct + type TableCell struct + Align CellAlignFlags + ColSpan int + IsHeader bool + type TableFooter struct + type TableHeader struct + type TableRow struct + type Text struct + type WalkStatus int + const GoToNext + const SkipChildren + const Terminate + func Walk(n Node, visitor NodeVisitor) WalkStatus