Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KindPanel = ast.NewNodeKind("Panel")
KindPanel is a NodeKind of the Panel node.
View Source
var KindSpan = ast.NewNodeKind("Span")
KindSpan is a NodeKind of the Span node.
View Source
var KindTable = ast.NewNodeKind("Table")
KindTable is a NodeKind of the Table node.
Functions ¶
func NewPanelParser ¶
func NewPanelParser() parser.BlockParser
NewPanelParser returns a new BlockParser that parses panels.
func NewSpanParser ¶
func NewSpanParser() parser.InlineParser
NewSpanParser returns a new InlineParser that can parse spans with attributes, like [foo bar]{.myClass}. See https://talk.commonmark.org/t/consistent-attribute-syntax/272. This parser must take precedence over the parser.LinkParser.
func NewTableParser ¶
func NewTableParser() parser.BlockParser
NewTableParser returns a new BlockParser that parses tables. This parser must take precedence over the parser.ThematicBreakParser.
Types ¶
type Span ¶
type Span struct { ast.BaseInline Value string }
A Span struct represents a span of text with attributes.
Click to show internal directories.
Click to hide internal directories.