Documentation
¶
Index ¶
- func Parse(tokens []*tokenizer.Token) ([]ast.Node, error)
- func ParseInline(tokens []*tokenizer.Token) ([]ast.Node, error)
- type BaseParser
- type BlockParser
- type BlockquoteParser
- type BoldItalicParser
- type BoldParser
- type CodeBlockParser
- type CodeParser
- type Context
- type HeadingParser
- type HorizontalRuleParser
- type ImageParser
- type InlineParser
- type ItalicParser
- type LineBreakParser
- type LinkParser
- type ParagraphParser
- type StrikethroughParser
- type TagParser
- type TextParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseParser ¶ added in v0.18.1
type BlockParser ¶ added in v0.18.1
type BlockParser interface {
BaseParser
}
type BlockquoteParser ¶ added in v0.18.1
type BlockquoteParser struct{}
func NewBlockquoteParser ¶ added in v0.18.1
func NewBlockquoteParser() *BlockquoteParser
type BoldItalicParser ¶ added in v0.18.1
type BoldItalicParser struct{}
type BoldParser ¶ added in v0.13.1
type BoldParser struct{}
type CodeBlockParser ¶ added in v0.13.1
func NewCodeBlockParser ¶ added in v0.13.1
func NewCodeBlockParser() *CodeBlockParser
type CodeParser ¶ added in v0.13.1
type CodeParser struct{}
func NewCodeParser ¶ added in v0.13.1
func NewCodeParser() *CodeParser
type Context ¶ added in v0.18.1
type Context struct {
BlockParsers []BlockParser
InlineParsers []InlineParser
}
type HeadingParser ¶ added in v0.13.1
type HeadingParser struct{}
func NewHeadingParser ¶ added in v0.13.1
func NewHeadingParser() *HeadingParser
type HorizontalRuleParser ¶ added in v0.18.1
type HorizontalRuleParser struct{}
func NewHorizontalRuleParser ¶ added in v0.18.1
func NewHorizontalRuleParser() *HorizontalRuleParser
type ImageParser ¶ added in v0.13.1
type ImageParser struct{}
func NewImageParser ¶ added in v0.13.1
func NewImageParser() *ImageParser
type InlineParser ¶ added in v0.18.1
type InlineParser interface {
BaseParser
}
func NewBoldItalicParser ¶ added in v0.18.1
func NewBoldItalicParser() InlineParser
func NewBoldParser ¶ added in v0.13.1
func NewBoldParser() InlineParser
type ItalicParser ¶ added in v0.13.1
func NewItalicParser ¶ added in v0.13.1
func NewItalicParser() *ItalicParser
type LineBreakParser ¶ added in v0.18.1
type LineBreakParser struct{}
func NewLineBreakParser ¶ added in v0.18.1
func NewLineBreakParser() *LineBreakParser
type LinkParser ¶ added in v0.13.1
type LinkParser struct{}
func NewLinkParser ¶ added in v0.13.1
func NewLinkParser() *LinkParser
type ParagraphParser ¶ added in v0.13.1
func NewParagraphParser ¶ added in v0.13.1
func NewParagraphParser() *ParagraphParser
type StrikethroughParser ¶ added in v0.18.1
type StrikethroughParser struct{}
func NewStrikethroughParser ¶ added in v0.18.1
func NewStrikethroughParser() *StrikethroughParser
type TagParser ¶ added in v0.13.1
type TagParser struct{}
func NewTagParser ¶ added in v0.13.1
func NewTagParser() *TagParser
type TextParser ¶ added in v0.18.1
type TextParser struct {
Content string
}
func NewTextParser ¶ added in v0.18.1
func NewTextParser() *TextParser
Source Files
¶
Click to show internal directories.
Click to hide internal directories.