Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KindEmphasis = gast.NewNodeKind("Emphasis")
KindEmphasis is a NodeKind of the Emphasis node.
View Source
var KindSpoiler = gast.NewNodeKind("Spoiler")
KindSpoiler is a NodeKind of the Spoiler node.
View Source
var KindStrikethrough = gast.NewNodeKind("Strikethrough")
KindStrikethrough is a NodeKind of the Strikethrough node.
View Source
var KindTemplate = gast.NewNodeKind("Template")
KindTemplate is a NodeKind of the Template node.
Functions ¶
This section is empty.
Types ¶
type Emphasis ¶
type Emphasis struct { gast.BaseInline Delimiter byte Level int }
A Emphasis struct represents a emphasis of Telegram Markdown text.
func NewEmphasis ¶
NewEmphasis returns a new Emphasis node.
type Spoiler ¶
type Spoiler struct {
gast.BaseInline
}
A Spoiler struct represents a spoiler of Telegram MarkdownV2 text.
type Strikethrough ¶
type Strikethrough struct {
gast.BaseInline
}
A Strikethrough struct represents a strikethrough of Telegram MarkdownV2 text.
func NewStrikethrough ¶
func NewStrikethrough() *Strikethrough
NewStrikethrough returns a new Strikethrough node.
func (*Strikethrough) Dump ¶
func (n *Strikethrough) Dump(source []byte, level int)
Dump implements Node.Dump.
func (*Strikethrough) Kind ¶
func (n *Strikethrough) Kind() gast.NodeKind
Kind implements Node.Kind.
Click to show internal directories.
Click to hide internal directories.