Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KindDisplayMath = gast.NewNodeKind("DisplayMath")
KindDisplayMath is the NodeKind for DisplayMath.
View Source
var KindInlineMath = gast.NewNodeKind("InlineMath")
KindInlineMath is the NodeKind for InlineMath.
Functions ¶
func NewBlockParser ¶
func NewBlockParser() parser.BlockParser
NewBlockParser returns a new display math block parser.
func NewInlineParser ¶
func NewInlineParser() parser.InlineParser
NewInlineParser returns a new inline math parser.
func NewRenderer ¶
func NewRenderer() renderer.NodeRenderer
NewRenderer returns a new math renderer.
Types ¶
type DisplayMath ¶
DisplayMath is a block AST node for $$...$$ math expressions.
func (*DisplayMath) Dump ¶
func (n *DisplayMath) Dump(source []byte, level int)
Dump implements ast.Node.Dump.
func (*DisplayMath) Kind ¶
func (n *DisplayMath) Kind() gast.NodeKind
Kind implements ast.Node.Kind.
type Extension ¶
type Extension struct{}
Extension is a goldmark extension that adds math expression support. Inline: $expression$ -> <span class="sarde-math math-inline"> Display: $$expression$$ -> <div class="sarde-math math-display">
type InlineMath ¶
type InlineMath struct {
gast.BaseInline
Expression string
}
InlineMath is an inline AST node for $...$ math expressions.
func (*InlineMath) Dump ¶
func (n *InlineMath) Dump(source []byte, level int)
Dump implements ast.Node.Dump.
Click to show internal directories.
Click to hide internal directories.