KindDefinitionDescription is a NodeKind of the DefinitionDescription node.
var KindDefinitionDescription = gast.NewNodeKind("DefinitionDescription")
KindDefinitionList is a NodeKind of the DefinitionList node.
var KindDefinitionList = gast.NewNodeKind("DefinitionList")
KindDefinitionTerm is a NodeKind of the DefinitionTerm node.
var KindDefinitionTerm = gast.NewNodeKind("DefinitionTerm")
KindFootnote is a NodeKind of the Footnote node.
var KindFootnote = gast.NewNodeKind("Footnote")
KindFootnoteBacklink is a NodeKind of the FootnoteBacklink node.
var KindFootnoteBacklink = gast.NewNodeKind("FootnoteBacklink")
KindFootnoteLink is a NodeKind of the FootnoteLink node.
var KindFootnoteLink = gast.NewNodeKind("FootnoteLink")
KindFootnoteList is a NodeKind of the FootnoteList node.
var KindFootnoteList = gast.NewNodeKind("FootnoteList")
KindStrikethrough is a NodeKind of the Strikethrough node.
var KindStrikethrough = gast.NewNodeKind("Strikethrough")
KindTable is a NodeKind of the Table node.
var KindTable = gast.NewNodeKind("Table")
KindTableCell is a NodeKind of the TableCell node.
var KindTableCell = gast.NewNodeKind("TableCell")
KindTableHeader is a NodeKind of the TableHeader node.
var KindTableHeader = gast.NewNodeKind("TableHeader")
KindTableRow is a NodeKind of the TableRow node.
var KindTableRow = gast.NewNodeKind("TableRow")
KindTaskCheckBox is a NodeKind of the TaskCheckBox node.
var KindTaskCheckBox = gast.NewNodeKind("TaskCheckBox")
Alignment is a text alignment of table cells.
type Alignment int
const ( // AlignLeft indicates text should be left justified. AlignLeft Alignment = iota + 1 // AlignRight indicates text should be right justified. AlignRight // AlignCenter indicates text should be centered. AlignCenter // AlignNone indicates text should be aligned by default manner. AlignNone )
func (a Alignment) String() string
A DefinitionDescription struct represents a definition list description of Markdown (PHPMarkdownExtra) text.
type DefinitionDescription struct { gast.BaseBlock IsTight bool }
func NewDefinitionDescription() *DefinitionDescription
NewDefinitionDescription returns a new DefinitionDescription node.
func (n *DefinitionDescription) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *DefinitionDescription) Kind() gast.NodeKind
Kind implements Node.Kind.
A DefinitionList struct represents a definition list of Markdown (PHPMarkdownExtra) text.
type DefinitionList struct { gast.BaseBlock Offset int TemporaryParagraph *gast.Paragraph }
func NewDefinitionList(offset int, para *gast.Paragraph) *DefinitionList
NewDefinitionList returns a new DefinitionList node.
func (n *DefinitionList) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *DefinitionList) Kind() gast.NodeKind
Kind implements Node.Kind.
A DefinitionTerm struct represents a definition list term of Markdown (PHPMarkdownExtra) text.
type DefinitionTerm struct { gast.BaseBlock }
func NewDefinitionTerm() *DefinitionTerm
NewDefinitionTerm returns a new DefinitionTerm node.
func (n *DefinitionTerm) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *DefinitionTerm) Kind() gast.NodeKind
Kind implements Node.Kind.
A Footnote struct represents a footnote of Markdown (PHP Markdown Extra) text.
type Footnote struct { gast.BaseBlock Ref []byte Index int }
func NewFootnote(ref []byte) *Footnote
NewFootnote returns a new Footnote node.
func (n *Footnote) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *Footnote) Kind() gast.NodeKind
Kind implements Node.Kind.
A FootnoteBacklink struct represents a link to a footnote of Markdown (PHP Markdown Extra) text.
type FootnoteBacklink struct { gast.BaseInline Index int RefCount int RefIndex int }
func NewFootnoteBacklink(index int) *FootnoteBacklink
NewFootnoteBacklink returns a new FootnoteBacklink node.
func (n *FootnoteBacklink) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *FootnoteBacklink) Kind() gast.NodeKind
Kind implements Node.Kind.
A FootnoteLink struct represents a link to a footnote of Markdown (PHP Markdown Extra) text.
type FootnoteLink struct { gast.BaseInline Index int RefCount int RefIndex int }
func NewFootnoteLink(index int) *FootnoteLink
NewFootnoteLink returns a new FootnoteLink node.
func (n *FootnoteLink) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *FootnoteLink) Kind() gast.NodeKind
Kind implements Node.Kind.
A FootnoteList struct represents footnotes of Markdown (PHP Markdown Extra) text.
type FootnoteList struct { gast.BaseBlock Count int }
func NewFootnoteList() *FootnoteList
NewFootnoteList returns a new FootnoteList node.
func (n *FootnoteList) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *FootnoteList) Kind() gast.NodeKind
Kind implements Node.Kind.
A Strikethrough struct represents a strikethrough of GFM text.
type Strikethrough struct { gast.BaseInline }
func NewStrikethrough() *Strikethrough
NewStrikethrough returns a new Strikethrough node.
func (n *Strikethrough) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *Strikethrough) Kind() gast.NodeKind
Kind implements Node.Kind.
A Table struct represents a table of Markdown(GFM) text.
type Table struct { gast.BaseBlock // Alignments returns alignments of the columns. Alignments []Alignment }
func NewTable() *Table
NewTable returns a new Table node.
func (n *Table) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *Table) Kind() gast.NodeKind
Kind implements Node.Kind.
A TableCell struct represents a table cell of a Markdown(GFM) text.
type TableCell struct { gast.BaseBlock Alignment Alignment }
func NewTableCell() *TableCell
NewTableCell returns a new TableCell node.
func (n *TableCell) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *TableCell) Kind() gast.NodeKind
Kind implements Node.Kind.
A TableHeader struct represents a table header of Markdown(GFM) text.
type TableHeader struct { gast.BaseBlock Alignments []Alignment }
func NewTableHeader(row *TableRow) *TableHeader
NewTableHeader returns a new TableHeader node.
func (n *TableHeader) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *TableHeader) Kind() gast.NodeKind
Kind implements Node.Kind.
A TableRow struct represents a table row of Markdown(GFM) text.
type TableRow struct { gast.BaseBlock Alignments []Alignment }
func NewTableRow(alignments []Alignment) *TableRow
NewTableRow returns a new TableRow node.
func (n *TableRow) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *TableRow) Kind() gast.NodeKind
Kind implements Node.Kind.
A TaskCheckBox struct represents a checkbox of a task list.
type TaskCheckBox struct { gast.BaseInline IsChecked bool }
func NewTaskCheckBox(checked bool) *TaskCheckBox
NewTaskCheckBox returns a new TaskCheckBox node.
func (n *TaskCheckBox) Dump(source []byte, level int)
Dump implements Node.Dump.
func (n *TaskCheckBox) Kind() gast.NodeKind
Kind implements Node.Kind.