Documentation ¶
Index ¶
- Variables
- func NewAtHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
- func NewAtParser() parser.InlineParser
- func NewDateHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
- func NewDateParser() parser.InlineParser
- func NewLatexHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
- func NewLatexParser() parser.InlineParser
- func NewPostHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
- func NewPostParser() parser.InlineParser
- func NewReferHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
- func NewReferParser() parser.InlineParser
- func NewTaskCheckBoxHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
- func NewTaskCheckBoxParser() parser.InlineParser
- type AtHTMLRenderer
- type DateHTMLRenderer
- type LatexHTMLRenderer
- type LocalLatexJSON
- type PostHTMLRenderer
- type ReferHTMLRenderer
- type TaskCheckBoxHTMLRenderer
Constants ¶
This section is empty.
Variables ¶
var At = &at{}
At is an extension that allow you to use at expression like '@john' .
var Date = &date{}
Date is an extension that allow you to use date expression like '$x^2$' .
var Latex = &latex{}
Latex is an extension that allow you to use latex expression like '$x^2$' .
var Post = &post{}
Post is an extension that allow you to use post expression like '$x^2$' .
var Refer = &refer{}
Refer is an extension that allow you to use refer expression like '$x^2$' .
var TaskList = &taskList{}
TaskList is an extension that allow you to use GFM task lists.
Functions ¶
func NewAtHTMLRenderer ¶
func NewAtHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
NewAtHTMLRenderer returns a new AtHTMLRenderer.
func NewAtParser ¶
func NewAtParser() parser.InlineParser
NewAtParser return a new InlineParser that parses at expressions.
func NewDateHTMLRenderer ¶ added in v0.0.4
func NewDateHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
NewDateHTMLRenderer returns a new DateHTMLRenderer.
func NewDateParser ¶ added in v0.0.4
func NewDateParser() parser.InlineParser
NewDateParser return a new InlineParser that parses date expressions.
func NewLatexHTMLRenderer ¶
func NewLatexHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
NewLatexHTMLRenderer returns a new LatexHTMLRenderer.
func NewLatexParser ¶
func NewLatexParser() parser.InlineParser
NewLatexParser return a new InlineParser that parses latex expressions.
func NewPostHTMLRenderer ¶ added in v0.0.2
func NewPostHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
NewPostHTMLRenderer returns a new PostHTMLRenderer.
func NewPostParser ¶ added in v0.0.2
func NewPostParser() parser.InlineParser
NewPostParser return a new InlineParser that parses post expressions.
func NewReferHTMLRenderer ¶ added in v0.0.2
func NewReferHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
NewReferHTMLRenderer returns a new ReferHTMLRenderer.
func NewReferParser ¶ added in v0.0.2
func NewReferParser() parser.InlineParser
NewReferParser return a new InlineParser that parses refer expressions.
func NewTaskCheckBoxHTMLRenderer ¶ added in v0.0.5
func NewTaskCheckBoxHTMLRenderer(opts ...html.Option) renderer.NodeRenderer
NewTaskCheckBoxHTMLRenderer returns a new TaskCheckBoxHTMLRenderer.
func NewTaskCheckBoxParser ¶ added in v0.0.5
func NewTaskCheckBoxParser() parser.InlineParser
NewTaskCheckBoxParser returns a new InlineParser that can parse checkboxes in list items. This parser must take precedence over the parser.LinkParser.
Types ¶
type AtHTMLRenderer ¶
AtHTMLRenderer is a renderer.NodeRenderer implementation that renders At nodes.
func (*AtHTMLRenderer) RegisterFuncs ¶
func (r *AtHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
type DateHTMLRenderer ¶ added in v0.0.4
DateHTMLRenderer is a renderer.NodeRenderer implementation that renders Date nodes.
func (*DateHTMLRenderer) RegisterFuncs ¶ added in v0.0.4
func (r *DateHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
type LatexHTMLRenderer ¶
LatexHTMLRenderer is a renderer.NodeRenderer implementation that renders Latex nodes.
func (*LatexHTMLRenderer) RegisterFuncs ¶
func (r *LatexHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
type LocalLatexJSON ¶ added in v0.0.7
type LocalLatexJSON struct { SpeakText string `json:"speakText"` SVG string `json:"svg"` Width string `json:"width"` Height string `json:"height"` Style string `json:"style"` }
LocalLatexJSON is the response from local Latex server
type PostHTMLRenderer ¶ added in v0.0.2
PostHTMLRenderer is a renderer.NodeRenderer implementation that renders Post nodes.
func (*PostHTMLRenderer) RegisterFuncs ¶ added in v0.0.2
func (r *PostHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
type ReferHTMLRenderer ¶ added in v0.0.2
ReferHTMLRenderer is a renderer.NodeRenderer implementation that renders Refer nodes.
func (*ReferHTMLRenderer) RegisterFuncs ¶ added in v0.0.2
func (r *ReferHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
type TaskCheckBoxHTMLRenderer ¶ added in v0.0.5
TaskCheckBoxHTMLRenderer is a renderer.NodeRenderer implementation that renders checkboxes in list items.
func (*TaskCheckBoxHTMLRenderer) RegisterFuncs ¶ added in v0.0.5
func (r *TaskCheckBoxHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package ast defines AST nodes that represents extension's elements Package ast defines AST nodes that represents extension's elements Package ast defines AST nodes that represents extension's elements Package ast defines AST nodes that represents extension's elements
|
Package ast defines AST nodes that represents extension's elements Package ast defines AST nodes that represents extension's elements Package ast defines AST nodes that represents extension's elements Package ast defines AST nodes that represents extension's elements |