Module mathml_tree

Module mathml_tree 

Source
Expand description

MathML tree node definitions for MathML rendering

These objects store data about MathML nodes. This is the MathML equivalent of the types in dom_tree.rs. Since MathML handles its own rendering, and since we’re mainly using MathML to improve accessibility, we don’t manage any of the styling state that the plain DOM nodes do.

Structs§

MathNode
General purpose MathML node of any type
MathNodeBuilder
Use builder syntax to set the inputs and finish with build().
SpaceNode
Space node for MathML, may render as <mspace> or as text
TextNode
Text node for MathML content

Enums§

MathDomNode
MathML DOM node enum for type-safe node representation
MathNodeType
MathML node types used in KaTeX

Functions§

get_space_character
Get the appropriate space character based on width
make_fragment
Make a MathDom Fragment

Type Aliases§

MathDomFragment
Document fragment containing MathML DOM nodes