package ast
Import Path
github.com/yuin/goldmark/ast (on go.dev )
Dependency Relation
imports 5 packages , and imported by 9 packages
Package-Level Type Names (total 31, in which 30 are exported)
/* sort exporteds by: alphabet | popularity */
type AutoLink (struct)
An AutoLink struct represents an autolink of the Markdown text.
Fields (total 12, in which 4 are exported )
AutoLinkType AutoLinkType
Type is a type of this autolink.
BaseInline BaseInline
BaseInline .BaseNode BaseNode
Protocol []byte
Protocol specified a protocol of the link.
/* 8 unexporteds ... */ /* 8 unexporteds: */
BaseInline .BaseNode .attributes []Attribute
BaseInline .BaseNode .childCount int
BaseInline .BaseNode .firstChild Node
BaseInline .BaseNode .lastChild Node
BaseInline .BaseNode .next Node
BaseInline .BaseNode .parent Node
BaseInline .BaseNode .prev Node
value *Text
Methods (total 36, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) Inline ()
Inline implements Inline.Inline.
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) Label (source []byte ) []byte
Label returns a label of this node.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
(*T) URL (source []byte ) []byte
URL returns an url of this node.
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewAutoLink (typ AutoLinkType , value *Text ) *AutoLink
type BaseBlock (struct)
A BaseBlock struct implements the Node interface partialliy.
Fields (total 10, in which 1 are exported )
BaseNode BaseNode
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseNode .attributes []Attribute
BaseNode .childCount int
BaseNode .firstChild Node
BaseNode .lastChild Node
BaseNode .next Node
BaseNode .parent Node
BaseNode .prev Node
blankPreviousLines bool
lines *textm .Segments
Methods (total 31, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
type BaseInline (struct)
A BaseInline struct implements the Node interface partialliy.
Fields (total 8, in which 1 are exported )
BaseNode BaseNode
/* 7 unexporteds ... */ /* 7 unexporteds: */
BaseNode .attributes []Attribute
BaseNode .childCount int
BaseNode .firstChild Node
BaseNode .lastChild Node
BaseNode .next Node
BaseNode .parent Node
BaseNode .prev Node
Methods (total 31, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
type BaseNode (struct)
A BaseNode struct implements the Node interface partialliy.
Fields (total 7, none are exported )
/* 7 unexporteds ... */ /* 7 unexporteds: */
attributes []Attribute
childCount int
firstChild Node
lastChild Node
next Node
parent Node
prev Node
Methods (total 25, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
type Blockquote (struct)
A Blockquote struct represents an blockquote block of Markdown text.
Fields (total 11, in which 2 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
Methods (total 33, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewBlockquote () *Blockquote
type CodeBlock (struct)
A CodeBlock interface represents an indented code block of Markdown text.
Fields (total 11, in which 2 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
Methods (total 33, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw.
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewCodeBlock () *CodeBlock
type CodeSpan (struct)
A CodeSpan struct represents a code span of Markdown text.
Fields (total 9, in which 2 are exported )
BaseInline BaseInline
BaseInline .BaseNode BaseNode
/* 7 unexporteds ... */ /* 7 unexporteds: */
BaseInline .BaseNode .attributes []Attribute
BaseInline .BaseNode .childCount int
BaseInline .BaseNode .firstChild Node
BaseInline .BaseNode .lastChild Node
BaseInline .BaseNode .next Node
BaseInline .BaseNode .parent Node
BaseInline .BaseNode .prev Node
Methods (total 35, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) Inline ()
Inline implements Inline.Inline .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsBlank (source []byte ) bool
IsBlank returns true if this node consists of spaces, otherwise false.
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewCodeSpan () *CodeSpan
type Document (struct)
A Document struct is a root node of Markdown text.
Fields (total 12, in which 2 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
/* 10 unexporteds ... */ /* 10 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
meta map[string ]interface{}
Methods (total 35, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) Meta () map[string ]interface{}
Meta returns metadata of this document.
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetMeta (meta map[string ]interface{})
SetMeta sets given metadata to this document.
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type .
Implements (at least one exported )
*T : Node
As Outputs Of (at least 4, all are exported )
func NewDocument () *Document
func (*BaseNode ).OwnerDocument () *Document
func (*Document).OwnerDocument () *Document
func Node .OwnerDocument () *Document
As Inputs Of (at least 2, both are exported )
func github.com/yuin/goldmark/parser.ASTTransformer .Transform (node *Document , reader text .Reader , pc parser .Context )
func golang.org/x/pkgsite/internal/postgres.(*ASTTransformer ).Transform (node *Document , reader text .Reader , pc parser .Context )
type Emphasis (struct)
An Emphasis struct represents an emphasis of Markdown text.
Fields (total 10, in which 3 are exported )
BaseInline BaseInline
BaseInline .BaseNode BaseNode
Level int
Level is a level of the emphasis.
/* 7 unexporteds ... */ /* 7 unexporteds: */
BaseInline .BaseNode .attributes []Attribute
BaseInline .BaseNode .childCount int
BaseInline .BaseNode .firstChild Node
BaseInline .BaseNode .lastChild Node
BaseInline .BaseNode .next Node
BaseInline .BaseNode .parent Node
BaseInline .BaseNode .prev Node
Methods (total 33, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump.
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewEmphasis (level int ) *Emphasis
type FencedCodeBlock (struct)
A FencedCodeBlock struct represents a fenced code block of Markdown text.
Fields (total 13, in which 3 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
Info *Text
Info returns a info text of this fenced code block.
/* 10 unexporteds ... */ /* 10 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
language []byte
Methods (total 34, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw.
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) Language (source []byte ) []byte
Language returns an language in an info string.
Language returns nil if this node does not have an info string.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewFencedCodeBlock (info *Text ) *FencedCodeBlock
type Heading (struct)
A Heading struct represents headings like SetextHeading and ATXHeading.
Fields (total 12, in which 3 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
Level int
Level returns a level of this heading.
This value is between 1 and 6.
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
Methods (total 33, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewHeading (level int ) *Heading
As Inputs Of (at least one unexported )
/* at least one unexported ... */ /* at least one unexported: */
func github.com/yuin/goldmark/parser.generateAutoHeadingID (node *Heading , reader text .Reader , pc parser .Context )
type HTMLBlock (struct)
An HTMLBlock struct represents an html block of Markdown text.
Fields (total 13, in which 4 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
ClosureLine textm .Segment
ClosureLine is a line that closes this html block.
HTMLBlockType HTMLBlockType
Type is a type of this html block.
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
Methods (total 34, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump.
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) HasClosure () bool
HasClosure returns true if this html block has a closure line,
otherwise false.
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw.
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewHTMLBlock (typ HTMLBlockType ) *HTMLBlock
type Image (struct)
An Image struct represents an image of the Markdown text.
Fields (total 12, in which 4 are exported )
baseLink .BaseInline BaseInline
baseLink .BaseInline .BaseNode BaseNode
baseLink .Destination []byte
Destination is a destination(URL) of this link.
baseLink .Title []byte
Title is a title of this link.
/* 8 unexporteds ... */ /* 8 unexporteds: */
baseLink baseLink
baseLink .BaseInline .BaseNode .attributes []Attribute
baseLink .BaseInline .BaseNode .childCount int
baseLink .BaseInline .BaseNode .firstChild Node
baseLink .BaseInline .BaseNode .lastChild Node
baseLink .BaseInline .BaseNode .next Node
baseLink .BaseInline .BaseNode .parent Node
baseLink .BaseInline .BaseNode .prev Node
Methods (total 34, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump.
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) Inline ()
Inline implements Inline.Inline.
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewImage (link *Link ) *Image
type Link (struct)
A Link struct represents a link of the Markdown text.
Fields (total 12, in which 4 are exported )
baseLink .BaseInline BaseInline
baseLink .BaseInline .BaseNode BaseNode
baseLink .Destination []byte
Destination is a destination(URL) of this link.
baseLink .Title []byte
Title is a title of this link.
/* 8 unexporteds ... */ /* 8 unexporteds: */
baseLink baseLink
baseLink .BaseInline .BaseNode .attributes []Attribute
baseLink .BaseInline .BaseNode .childCount int
baseLink .BaseInline .BaseNode .firstChild Node
baseLink .BaseInline .BaseNode .lastChild Node
baseLink .BaseInline .BaseNode .next Node
baseLink .BaseInline .BaseNode .parent Node
baseLink .BaseInline .BaseNode .prev Node
Methods (total 34, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump.
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) Inline ()
Inline implements Inline.Inline.
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewLink () *Link
As Inputs Of (at least one exported )
func NewImage (link *Link ) *Image
type List (struct)
A List struct represents a list of Markdown text.
Fields (total 14, in which 5 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
IsTight bool
IsTight is a true if this list is a 'tight' list.
See https://spec.commonmark.org/0.29/#loose for details.
Marker byte
Marker is a marker character like '-', '+', ')' and '.'.
Start int
Start is an initial number of this ordered list.
If this list is not an ordered list, Start is 0.
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
Methods (total 35, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) CanContinue (marker byte , isOrdered bool ) bool
CanContinue returns true if this list can continue with
the given mark and a list type, otherwise false.
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump.
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsOrdered () bool
IsOrdered returns true if this list is an ordered list, otherwise false.
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewList (marker byte ) *List
type ListItem (struct)
A ListItem struct represents a list item of Markdown text.
Fields (total 12, in which 3 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
Offset int
Offset is an offset position of this item.
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
Methods (total 33, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump.
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewListItem (offset int ) *ListItem
type Node (interface)
A Node interface defines basic AST node functionalities.
Methods (total 33, all are exported )
( T) AppendChild (self, child Node )
AppendChild append a node child to the tail of the children.
( T) Attribute (name []byte ) (interface{}, bool )
Attribute returns a (attribute value, true) if an attribute
associated with the given name is found, otherwise
(nil, false)
( T) AttributeString (name string ) (interface{}, bool )
AttributeString returns a (attribute value, true) if an attribute
associated with the given name is found, otherwise
(nil, false)
( T) Attributes () []Attribute
Attributes returns a list of attributes.
This may be a nil if there are no attributes.
( T) ChildCount () int
ChildCount returns a total number of children.
( T) Dump (source []byte , level int )
Dump dumps an AST tree structure to stdout.
This function completely aimed for debugging.
level is a indent level. Implementer should indent informations with
2 * level spaces.
( T) FirstChild () Node
FirstChild returns a first child of this node.
( T) HasBlankPreviousLines () bool
HasBlankPreviousLines returns true if the row before this node is blank,
otherwise false.
This method is valid only for block nodes.
( T) HasChildren () bool
HasChildren returns true if this node has any children, otherwise false.
( T) InsertAfter (self, v1, insertee Node )
InsertAfterinserts a node insertee after a node v1.
If v1 is not children of this node, InsertBefore append a insetee to the
tail of the children.
( T) InsertBefore (self, v1, insertee Node )
InsertBefore inserts a node insertee before a node v1.
If v1 is not children of this node, InsertBefore append a insetee to the
tail of the children.
( T) IsRaw () bool
IsRaw returns true if contents should be rendered as 'raw' contents.
( T) Kind () NodeKind
Kind returns a kind of this node.
( T) LastChild () Node
LastChild returns a last child of this node.
( T) Lines () *textm .Segments
Lines returns text segments that hold positions in a source.
This method is valid only for block nodes.
( T) NextSibling () Node
NextSibling returns a next sibling node of this node.
( T) OwnerDocument () *Document
OwnerDocument returns this node's owner document.
If this node is not a child of the Document node, OwnerDocument
returns nil.
( T) Parent () Node
Parent returns a parent node of this node.
( T) PreviousSibling () Node
PreviousSibling returns a previous sibling node of this node.
( T) RemoveAttributes ()
RemoveAttributes removes all attributes from this node.
( T) RemoveChild (self, child Node )
RemoveChild removes a node child from this node.
If a node child is not children of this node, RemoveChild nothing to do.
( T) RemoveChildren (self Node )
RemoveChildren removes all children from this node.
( T) ReplaceChild (self, v1, insertee Node )
ReplaceChild replace a node v1 with a node insertee.
If v1 is not children of this node, ReplaceChild append a insetee to the
tail of the children.
( T) SetAttribute (name []byte , value interface{})
SetAttribute sets the given value to the attributes.
( T) SetAttributeString (name string , value interface{})
SetAttributeString sets the given value to the attributes.
( T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines sets whether the row before this node is blank.
This method is valid only for block nodes.
( T) SetLines (*textm .Segments )
SetLines sets text segments that hold positions in a source.
This method is valid only for block nodes.
( T) SetNextSibling (Node )
SetNextSibling sets a next sibling node to this node.
( T) SetParent (Node )
SetParent sets a parent node to this node.
( T) SetPreviousSibling (Node )
SetPreviousSibling sets a previous sibling node to this node.
( T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren sorts childrens by comparator.
( T) Text (source []byte ) []byte
Text returns text values of this node.
( T) Type () NodeType
Type returns a type of this node.
Implemented By (at least 35, in which 34 are exported )
*AutoLink
*Blockquote
*CodeBlock
*CodeSpan
*Document
*Emphasis
*FencedCodeBlock
*Heading
*HTMLBlock
*Image
*Link
*List
*ListItem
*Paragraph
*RawHTML
*String
*Text
*TextBlock
*ThematicBreak
*github.com/yuin/goldmark/extension/ast.DefinitionDescription
*github.com/yuin/goldmark/extension/ast.DefinitionList
*github.com/yuin/goldmark/extension/ast.DefinitionTerm
*github.com/yuin/goldmark/extension/ast.Footnote
*github.com/yuin/goldmark/extension/ast.FootnoteBacklink
*github.com/yuin/goldmark/extension/ast.FootnoteLink
*github.com/yuin/goldmark/extension/ast.FootnoteList
*github.com/yuin/goldmark/extension/ast.Strikethrough
*github.com/yuin/goldmark/extension/ast.Table
*github.com/yuin/goldmark/extension/ast.TableCell
*github.com/yuin/goldmark/extension/ast.TableHeader
*github.com/yuin/goldmark/extension/ast.TableRow
*github.com/yuin/goldmark/extension/ast.TaskCheckBox
*github.com/yuin/goldmark/parser.Delimiter
*github.com/yuin/goldmark-emoji/ast.Emoji
/* at least one unexported ... */ /* at least one unexported: */
*github.com/yuin/goldmark/parser.linkLabelState
As Outputs Of (at least 14, all are exported )
func (*BaseNode ).FirstChild () Node
func (*BaseNode ).LastChild () Node
func (*BaseNode ).NextSibling () Node
func (*BaseNode ).Parent () Node
func (*BaseNode ).PreviousSibling () Node
func Node.FirstChild () Node
func Node.LastChild () Node
func Node.NextSibling () Node
func Node.Parent () Node
func Node.PreviousSibling () Node
func github.com/yuin/goldmark/parser.BlockParser .Open (parent Node , reader text .Reader , pc parser .Context ) (Node , parser .State )
func github.com/yuin/goldmark/parser.DelimiterProcessor .OnMatch (consumes int ) Node
func github.com/yuin/goldmark/parser.InlineParser .Parse (parent Node , block text .Reader , pc parser .Context ) Node
func github.com/yuin/goldmark/parser.Parser .Parse (reader text .Reader , opts ...parser .ParseOption ) Node
As Inputs Of (at least 74, in which 34 are exported )
func DumpHelper (v Node , source []byte , level int , kv map[string ]string , cb func(int ))
func IsParagraph (node Node ) bool
func MergeOrAppendTextSegment (parent Node , s textm .Segment )
func MergeOrReplaceTextSegment (parent Node , n Node , s textm .Segment )
func MergeOrReplaceTextSegment (parent Node , n Node , s textm .Segment )
func Walk (n Node , walker Walker ) error
func (*BaseNode ).AppendChild (self, v Node )
func (*BaseNode ).InsertAfter (self, v1, insertee Node )
func (*BaseNode ).InsertBefore (self, v1, insertee Node )
func (*BaseNode ).RemoveChild (self, v Node )
func (*BaseNode ).RemoveChildren (self Node )
func (*BaseNode ).ReplaceChild (self, v1, insertee Node )
func (*BaseNode ).SetNextSibling (v Node )
func (*BaseNode ).SetParent (v Node )
func (*BaseNode ).SetPreviousSibling (v Node )
func Node.AppendChild (self, child Node )
func Node.InsertAfter (self, v1, insertee Node )
func Node.InsertBefore (self, v1, insertee Node )
func Node.RemoveChild (self, child Node )
func Node.RemoveChildren (self Node )
func Node.ReplaceChild (self, v1, insertee Node )
func Node.SetNextSibling (Node )
func Node.SetParent (Node )
func Node.SetPreviousSibling (Node )
func (*Text ).Merge (node Node , source []byte ) bool
func github.com/yuin/goldmark/parser.ProcessDelimiters (bottom Node , pc parser .Context )
func github.com/yuin/goldmark/parser.BlockParser .Close (node Node , reader text .Reader , pc parser .Context )
func github.com/yuin/goldmark/parser.BlockParser .Continue (node Node , reader text .Reader , pc parser .Context ) parser .State
func github.com/yuin/goldmark/parser.BlockParser .Open (parent Node , reader text .Reader , pc parser .Context ) (Node , parser .State )
func github.com/yuin/goldmark/parser.CloseBlocker .CloseBlock (parent Node , block text .Reader , pc parser .Context )
func github.com/yuin/goldmark/parser.Context .ClearDelimiters (bottom Node )
func github.com/yuin/goldmark/parser.InlineParser .Parse (parent Node , block text .Reader , pc parser .Context ) Node
func github.com/yuin/goldmark/renderer.Renderer .Render (w io .Writer , source []byte , n Node ) error
func github.com/yuin/goldmark/renderer/html.RenderAttributes (w util .BufWriter , node Node , filter util .BytesFilter )
/* 40+ unexporteds ... */ /* 40+ unexporteds: */
func ensureIsolated (v Node )
func walkHelper (n Node , walker Walker ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*DefinitionListHTMLRenderer ).renderDefinitionDescription (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*DefinitionListHTMLRenderer ).renderDefinitionList (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*DefinitionListHTMLRenderer ).renderDefinitionTerm (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*FootnoteHTMLRenderer ).idPrefix (node Node ) []byte
func github.com/yuin/goldmark/extension.(*FootnoteHTMLRenderer ).renderFootnote (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*FootnoteHTMLRenderer ).renderFootnoteBacklink (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*FootnoteHTMLRenderer ).renderFootnoteLink (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*FootnoteHTMLRenderer ).renderFootnoteList (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*StrikethroughHTMLRenderer ).renderStrikethrough (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TableHTMLRenderer ).renderTable (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TableHTMLRenderer ).renderTableCell (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TableHTMLRenderer ).renderTableHeader (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TableHTMLRenderer ).renderTableRow (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TaskCheckBoxHTMLRenderer ).renderTaskCheckBox (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/parser.lastOffset (node Node ) int
func github.com/yuin/goldmark/parser.parseLastLineAttributes (node Node , reader text .Reader , pc parser .Context )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderAutoLink (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderBlockquote (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderCodeBlock (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderCodeSpan (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderDocument (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderEmphasis (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderFencedCodeBlock (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderHeading (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderHTMLBlock (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderImage (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderLink (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderList (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderListItem (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderParagraph (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderRawHTML (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderString (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderText (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderTextBlock (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderThematicBreak (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).writeLines (w util .BufWriter , source []byte , n Node )
func golang.org/x/pkgsite/internal/postgres.(*HTMLRenderer ).skipImage (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func golang.org/x/pkgsite/internal/postgres.(*HTMLRenderer ).skipNode (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
type Paragraph (struct)
A Paragraph struct represents a paragraph of Markdown text.
Fields (total 11, in which 2 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
Methods (total 33, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewParagraph () *Paragraph
As Inputs Of (at least 2, both are exported )
func github.com/yuin/goldmark/extension/ast.NewDefinitionList (offset int , para *Paragraph ) *ast .DefinitionList
func github.com/yuin/goldmark/parser.ParagraphTransformer .Transform (node *Paragraph , reader text .Reader , pc parser .Context )
type RawHTML (struct)
A RawHTML struct represents an inline raw HTML of the Markdown text.
Fields (total 10, in which 3 are exported )
BaseInline BaseInline
BaseInline .BaseNode BaseNode
Segments *textm .Segments
/* 7 unexporteds ... */ /* 7 unexporteds: */
BaseInline .BaseNode .attributes []Attribute
BaseInline .BaseNode .childCount int
BaseInline .BaseNode .firstChild Node
BaseInline .BaseNode .lastChild Node
BaseInline .BaseNode .next Node
BaseInline .BaseNode .parent Node
BaseInline .BaseNode .prev Node
Methods (total 34, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump.
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) Inline ()
Inline implements Inline.Inline.
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewRawHTML () *RawHTML
type String (struct)
A String struct is a textual content that has a concrete value
Fields (total 11, in which 3 are exported )
BaseInline BaseInline
BaseInline .BaseNode BaseNode
Value []byte
/* 8 unexporteds ... */ /* 8 unexporteds: */
BaseInline .BaseNode .attributes []Attribute
BaseInline .BaseNode .childCount int
BaseInline .BaseNode .firstChild Node
BaseInline .BaseNode .lastChild Node
BaseInline .BaseNode .next Node
BaseInline .BaseNode .parent Node
BaseInline .BaseNode .prev Node
flags uint8
Methods (total 37, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump.
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) Inline ()
Inline implements Inline.Inline.
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsCode () bool
IsCode returns true if this text should be rendered without any
modifications.
(*T) IsRaw () bool
IsRaw returns true if this text should be rendered without unescaping
back slash escapes and resolving references.
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetCode (v bool )
SetCode sets whether this text should be rendered without any modifications.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SetRaw (v bool )
SetRaw sets whether this text should be rendered as raw contents.
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text.
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewString (v []byte ) *String
type Text (struct)
A Text struct represents a textual content of the Markdown text.
Fields (total 11, in which 3 are exported )
BaseInline BaseInline
BaseInline .BaseNode BaseNode
Segment textm .Segment
Segment is a position in a source text.
/* 8 unexporteds ... */ /* 8 unexporteds: */
BaseInline .BaseNode .attributes []Attribute
BaseInline .BaseNode .childCount int
BaseInline .BaseNode .firstChild Node
BaseInline .BaseNode .lastChild Node
BaseInline .BaseNode .next Node
BaseInline .BaseNode .parent Node
BaseInline .BaseNode .prev Node
flags uint8
Methods (total 40, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump.
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HardLineBreak () bool
HardLineBreak returns true if this node ends with a hard line break.
See https://spec.commonmark.org/0.29/#hard-line-breaks for details.
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) Inline ()
Inline implements Inline.Inline.
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw returns true if this text should be rendered without unescaping
back slash escapes and resolving references.
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) Merge (node Node , source []byte ) bool
Merge merges a Node n into this node.
Merge returns true if the given node has been merged, otherwise false.
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetHardLineBreak (v bool )
SetHardLineBreak sets whether this node ends with a hard line break.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SetRaw (v bool )
SetRaw sets whether this text should be rendered as raw contents.
(*T) SetSoftLineBreak (v bool )
SetSoftLineBreak sets whether this node ends with a new line.
(*T) SoftLineBreak () bool
SoftLineBreak returns true if this node ends with a new line,
otherwise false.
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text.
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least 3, all are exported )
func NewRawTextSegment (v textm .Segment ) *Text
func NewText () *Text
func NewTextSegment (v textm .Segment ) *Text
As Inputs Of (at least 2, both are exported )
func NewAutoLink (typ AutoLinkType , value *Text ) *AutoLink
func NewFencedCodeBlock (info *Text ) *FencedCodeBlock
type TextBlock (struct)
A TextBlock struct is a node whose lines
should be rendered without any containers.
Fields (total 11, in which 2 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
Methods (total 33, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewTextBlock () *TextBlock
type ThematicBreak (struct)
A ThematicBreak struct represents a thematic break of Markdown text.
Fields (total 11, in which 2 are exported )
BaseBlock BaseBlock
BaseBlock .BaseNode BaseNode
/* 9 unexporteds ... */ /* 9 unexporteds: */
BaseBlock .BaseNode .attributes []Attribute
BaseBlock .BaseNode .childCount int
BaseBlock .BaseNode .firstChild Node
BaseBlock .BaseNode .lastChild Node
BaseBlock .BaseNode .next Node
BaseBlock .BaseNode .parent Node
BaseBlock .BaseNode .prev Node
BaseBlock .blankPreviousLines bool
BaseBlock .lines *textm .Segments
Methods (total 33, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) Dump (source []byte , level int )
Dump implements Node.Dump .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) Kind () NodeKind
Kind implements Node.Kind.
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
Implements (at least one exported )
*T : Node
As Outputs Of (at least one exported )
func NewThematicBreak () *ThematicBreak
type WalkStatus int (basic type)
WalkStatus represents a current status of the Walk function.
As Outputs Of (at least 35, none are exported )
/* 35+ unexporteds ... */ /* 35+ unexporteds: */
func walkHelper (n Node , walker Walker ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*DefinitionListHTMLRenderer ).renderDefinitionDescription (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*DefinitionListHTMLRenderer ).renderDefinitionList (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*DefinitionListHTMLRenderer ).renderDefinitionTerm (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*FootnoteHTMLRenderer ).renderFootnote (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*FootnoteHTMLRenderer ).renderFootnoteBacklink (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*FootnoteHTMLRenderer ).renderFootnoteLink (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*FootnoteHTMLRenderer ).renderFootnoteList (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*StrikethroughHTMLRenderer ).renderStrikethrough (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TableHTMLRenderer ).renderTable (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TableHTMLRenderer ).renderTableCell (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TableHTMLRenderer ).renderTableHeader (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TableHTMLRenderer ).renderTableRow (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/extension.(*TaskCheckBoxHTMLRenderer ).renderTaskCheckBox (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderAutoLink (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderBlockquote (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderCodeBlock (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderCodeSpan (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderDocument (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderEmphasis (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderFencedCodeBlock (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderHeading (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderHTMLBlock (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderImage (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderLink (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderList (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderListItem (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderParagraph (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderRawHTML (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderString (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderText (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderTextBlock (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func github.com/yuin/goldmark/renderer/html.(*Renderer ).renderThematicBreak (w util .BufWriter , source []byte , n Node , entering bool ) (WalkStatus , error )
func golang.org/x/pkgsite/internal/postgres.(*HTMLRenderer ).skipImage (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
func golang.org/x/pkgsite/internal/postgres.(*HTMLRenderer ).skipNode (w util .BufWriter , source []byte , node Node , entering bool ) (WalkStatus , error )
As Types Of (total 3, all are exported )
const WalkContinue
const WalkSkipChildren
const WalkStop
/* one unexported ... */ /* one unexported: */ type baseLink (struct)
Fields (total 11, in which 4 are exported )
BaseInline BaseInline
BaseInline .BaseNode BaseNode
Destination []byte
Destination is a destination(URL) of this link.
Title []byte
Title is a title of this link.
/* 7 unexporteds ... */ /* 7 unexporteds: */
BaseInline .BaseNode .attributes []Attribute
BaseInline .BaseNode .childCount int
BaseInline .BaseNode .firstChild Node
BaseInline .BaseNode .lastChild Node
BaseInline .BaseNode .next Node
BaseInline .BaseNode .parent Node
BaseInline .BaseNode .prev Node
Methods (total 32, all are exported )
(*T) AppendChild (self, v Node )
AppendChild implements Node.AppendChild .
(*T) Attribute (name []byte ) (interface{}, bool )
Attribute implements Node.Attribute.
(*T) AttributeString (s string ) (interface{}, bool )
AttributeString implements Node.AttributeString.
(*T) Attributes () []Attribute
Attributes implements Node.Attributes
(*T) ChildCount () int
ChildCount implements Node.ChildCount .
(*T) FirstChild () Node
FirstChild implements Node.FirstChild .
(*T) HasBlankPreviousLines () bool
HasBlankPreviousLines implements Node.HasBlankPreviousLines.
(*T) HasChildren () bool
HasChildren implements Node.HasChildren .
(*T) Inline ()
Inline implements Inline.Inline.
(*T) InsertAfter (self, v1, insertee Node )
InsertAfter implements Node.InsertAfter .
(*T) InsertBefore (self, v1, insertee Node )
InsertBefore implements Node.InsertBefore .
(*T) IsRaw () bool
IsRaw implements Node.IsRaw
(*T) LastChild () Node
LastChild implements Node.LastChild .
(*T) Lines () *textm .Segments
Lines implements Node.Lines
(*T) NextSibling () Node
NextSibling implements Node.NextSibling .
(*T) OwnerDocument () *Document
OwnerDocument implements Node.OwnerDocument
(*T) Parent () Node
Parent implements Node.Parent .
(*T) PreviousSibling () Node
PreviousSibling implements Node.PreviousSibling .
(*T) RemoveAttributes ()
RemoveAttributes implements Node.RemoveAttributes
(*T) RemoveChild (self, v Node )
RemoveChild implements Node.RemoveChild .
(*T) RemoveChildren (self Node )
RemoveChildren implements Node.RemoveChildren .
(*T) ReplaceChild (self, v1, insertee Node )
ReplaceChild implements Node.ReplaceChild .
(*T) SetAttribute (name []byte , value interface{})
SetAttribute implements Node.SetAttribute.
(*T) SetAttributeString (name string , value interface{})
SetAttributeString implements Node.SetAttributeString
(*T) SetBlankPreviousLines (v bool )
SetBlankPreviousLines implements Node.SetBlankPreviousLines.
(*T) SetLines (v *textm .Segments )
SetLines implements Node.SetLines
(*T) SetNextSibling (v Node )
SetNextSibling implements Node.SetNextSibling .
(*T) SetParent (v Node )
SetParent implements Node.SetParent .
(*T) SetPreviousSibling (v Node )
SetPreviousSibling implements Node.SetPreviousSibling .
(*T) SortChildren (comparator func(n1, n2 Node ) int )
SortChildren implements Node.SortChildren
(*T) Text (source []byte ) []byte
Text implements Node.Text .
(*T) Type () NodeType
Type implements Node.Type
The pages are generated with Golds v0.3.2-preview . (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds .