extensions

package module
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var At = &at{}

At is an extension that allow you to use at expression like '@john' .

View Source
var Date = &date{}

Date is an extension that allow you to use date expression like '$x^2$' .

View Source
var Latex = &latex{}

Latex is an extension that allow you to use latex expression like '$x^2$' .

View Source
var Post = &post{}

Post is an extension that allow you to use post expression like '$x^2$' .

View Source
var Refer = &refer{}

Refer is an extension that allow you to use refer expression like '$x^2$' .

View Source
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

type AtHTMLRenderer struct {
	html.Config
}

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

type DateHTMLRenderer struct {
	html.Config
}

DateHTMLRenderer is a renderer.NodeRenderer implementation that renders Date nodes.

func (*DateHTMLRenderer) RegisterFuncs added in v0.0.4

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

type LatexHTMLRenderer

type LatexHTMLRenderer struct {
	html.Config
}

LatexHTMLRenderer is a renderer.NodeRenderer implementation that renders Latex nodes.

func (*LatexHTMLRenderer) RegisterFuncs

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

type PostHTMLRenderer struct {
	html.Config
}

PostHTMLRenderer is a renderer.NodeRenderer implementation that renders Post nodes.

func (*PostHTMLRenderer) RegisterFuncs added in v0.0.2

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

type ReferHTMLRenderer added in v0.0.2

type ReferHTMLRenderer struct {
	html.Config
}

ReferHTMLRenderer is a renderer.NodeRenderer implementation that renders Refer nodes.

func (*ReferHTMLRenderer) RegisterFuncs added in v0.0.2

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

type TaskCheckBoxHTMLRenderer added in v0.0.5

type TaskCheckBoxHTMLRenderer struct {
	html.Config
}

TaskCheckBoxHTMLRenderer is a renderer.NodeRenderer implementation that renders checkboxes in list items.

func (*TaskCheckBoxHTMLRenderer) RegisterFuncs added in v0.0.5

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL