Documentation ¶
Index ¶
- Variables
- type InlineParser
- type MarkdownDirectiveRenderer
- type MarkdownDirectiveRendererFunc
- type MarkdownNodeRenderer
- type MarkdownNodeRendererOptionFunc
- type MarkdownNodeRendererOptions
- type Node
- type NodeRenderer
- type NodeRendererFunc
- type NodeTransformer
- type NodeTransformerFunc
- type PostTranformer
- type PrioritizedNodeTransformer
- type Renderer
- type RendererOptionFunc
- type RendererOptions
- type Transformer
- type TransformerOptionFunc
- type TransformerOptions
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var KindDirective = ast.NewNodeKind("Directive")
Functions ¶
This section is empty.
Types ¶
type InlineParser ¶
type InlineParser struct { }
func (*InlineParser) Trigger ¶
func (*InlineParser) Trigger() []byte
Trigger implements parser.InlineParser.
type MarkdownNodeRenderer ¶
type MarkdownNodeRenderer struct {
// contains filtered or unexported fields
}
func NewMarkdownNodeRenderer ¶
func NewMarkdownNodeRenderer(funcs ...MarkdownNodeRendererOptionFunc) *MarkdownNodeRenderer
type MarkdownNodeRendererOptionFunc ¶
type MarkdownNodeRendererOptionFunc func(opts *MarkdownNodeRendererOptions)
func WithMarkdownDirectiveRenderer ¶
func WithMarkdownDirectiveRenderer(directiveType Type, renderer MarkdownDirectiveRenderer) MarkdownNodeRendererOptionFunc
func WithMarkdownDirectiveRendererFunc ¶
func WithMarkdownDirectiveRendererFunc(directiveType Type, render MarkdownDirectiveRendererFunc) MarkdownNodeRendererOptionFunc
type MarkdownNodeRendererOptions ¶
type MarkdownNodeRendererOptions struct {
Renderers map[Type]MarkdownDirectiveRenderer
}
func NewMarkdownNodeRendererOptions ¶
func NewMarkdownNodeRendererOptions(funcs ...MarkdownNodeRendererOptionFunc) *MarkdownNodeRendererOptions
type Node ¶
type Node struct { ast.BaseInline // contains filtered or unexported fields }
func (*Node) DirectiveType ¶
type NodeRenderer ¶
type NodeRendererFunc ¶
type NodeTransformer ¶
type NodeTransformerFunc ¶
type PostTranformer ¶ added in v0.3.0
type PrioritizedNodeTransformer ¶ added in v0.3.0
type PrioritizedNodeTransformer interface { NodeTransformer Priority() int }
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer(funcs ...RendererOptionFunc) *Renderer
func (*Renderer) RegisterFuncs ¶
func (r *Renderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
type RendererOptionFunc ¶
type RendererOptionFunc func(opts *RendererOptions)
func WithRenderer ¶
func WithRenderer(directiveType Type, Renderer NodeRenderer) RendererOptionFunc
func WithRendererFunc ¶
func WithRendererFunc(directiveType Type, transform NodeRendererFunc) RendererOptionFunc
type RendererOptions ¶
type RendererOptions struct {
Renderers map[Type]NodeRenderer
}
func NewRendererOptions ¶
func NewRendererOptions(funcs ...RendererOptionFunc) *RendererOptions
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
func NewTransformer ¶
func NewTransformer(funcs ...TransformerOptionFunc) *Transformer
type TransformerOptionFunc ¶
type TransformerOptionFunc func(opts *TransformerOptions)
func WithTransformer ¶
func WithTransformer(directiveType Type, transformer NodeTransformer) TransformerOptionFunc
func WithTransformerFunc ¶
func WithTransformerFunc(directiveType Type, transform NodeTransformerFunc) TransformerOptionFunc
type TransformerOptions ¶
type TransformerOptions struct {
Transformers map[Type]NodeTransformer
}
func NewTransformerOptions ¶
func NewTransformerOptions(funcs ...TransformerOptionFunc) *TransformerOptions
Source Files ¶
Click to show internal directories.
Click to hide internal directories.