Documentation ¶
Index ¶
- Variables
- func NewBlockParser(parseDollars, parseSquare bool) parser.BlockParser
- func NewBlockRenderer(renderInternal *nocturnal.RenderInternal) renderer.NodeRenderer
- func NewInlineBracketParser() parser.InlineParser
- func NewInlineDollarParser() parser.InlineParser
- func NewInlineRenderer(renderInternal *nocturnal.RenderInternal) renderer.NodeRenderer
- type Block
- type BlockRenderer
- type Extension
- type Inline
- type InlineRenderer
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var KindBlock = ast.NewNodeKind("MathBlock")
KindBlock is the node kind for math blocks
View Source
var KindInline = ast.NewNodeKind("MathInline")
KindInline is the kind for math inline
Functions ¶
func NewBlockParser ¶
func NewBlockParser(parseDollars, parseSquare bool) parser.BlockParser
NewBlockParser creates a new math BlockParser
func NewBlockRenderer ¶
func NewBlockRenderer(renderInternal *nocturnal.RenderInternal) renderer.NodeRenderer
NewBlockRenderer creates a new renderer for math Blocks
func NewInlineBracketParser ¶
func NewInlineBracketParser() parser.InlineParser
func NewInlineDollarParser ¶
func NewInlineDollarParser() parser.InlineParser
func NewInlineRenderer ¶
func NewInlineRenderer(renderInternal *nocturnal.RenderInternal) renderer.NodeRenderer
NewInlineRenderer returns a new renderer for inline math
Types ¶
type Block ¶
Block represents a display math block e.g. $$...$$ or \[...\]
type BlockRenderer ¶
type BlockRenderer struct {
// contains filtered or unexported fields
}
BlockRenderer represents a renderer for math Blocks
func (*BlockRenderer) RegisterFuncs ¶
func (r *BlockRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs registers the renderer for math Blocks
type Extension ¶
type Extension struct {
// contains filtered or unexported fields
}
Extension is a math extension
func NewExtension ¶
func NewExtension(renderInternal *nocturnal.RenderInternal, opts ...Options) *Extension
NewExtension creates a new math extension with the provided options
type Inline ¶
type Inline struct {
ast.BaseInline
}
Inline struct represents inline math e.g. $...$ or \(...\)
type InlineRenderer ¶
type InlineRenderer struct {
// contains filtered or unexported fields
}
InlineRenderer is an inline renderer
func (*InlineRenderer) RegisterFuncs ¶
func (r *InlineRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs registers the renderer for inline math nodes
Click to show internal directories.
Click to hide internal directories.