Crate alemat

Source
Expand description

Library for type-safe building of MathML (core) markup.

Re-exports§

pub use attributes::Attribute;
pub use elements::Element;
pub use elements::Elements;

Modules§

attributes
Global attributes of MathML elements.
elements
Elements found in the MathML Core Specification. These elements are called MathML Core elements.
markers
Marker types used in builders.

Macros§

children
Create a Elements from a list of Elements.
row
Create a mrow of Elements.
table
Create a Table easily using this macro.
table_row
Create a row of TableCells. To be used in Table.

Structs§

BufMathMlWriter
Default implementation of MathMl Writer.
MathMl
The MathMl is the math - the top-level MathML element, used to write a single mathematical formula. It can be placed in HTML content where flow content is permitted.
MathMlFormatter
Default MathMl Renderer implementation.

Enums§

DisplayAttr
Specifies how the enclosed MathML markup should be rendered.
MathMlAttr
Attributes of the math (MathMl) element.

Traits§

Renderer
Trait for rendering MathML elements. Each method in this trait has a default implementation that returns Result::Ok with an empty String. This makes it possible to potentially introduce new elements without breaking existing renderers. This means that any new elements introduced will be omitted in the final render, if the corresponding methods are not implemented.
Writer
Trait for writing MathML elements. Each method in this trait has a default implementation that does nothing.