Expand description
Node-tree → MathML Core serializer.
Deterministic: attribute order is fixed per element, every element has an explicit close tag (no self-closing form), and text/attr values are XML escaped. The walk never panics; a hostile or fragment tree still yields a well-formed fragment.
Functions§
- mathml_
well_ formed - Std-only well-formedness check: balanced tags, quoted attributes, escaped text. Accepts the serializer’s output contract (no self-closing tags).
- to_
mathml - Serialize
nodeas a complete<math>…</math>fragment. - to_
mathml_ element - Serialize
nodeas a MathML element (no outer<math>wrapper).