Appearance
Function: mathmlToOmml() ​
mathmlToOmml(
mathml):string
Convert a MathML string to OMML for the math: option on addText.
Canonical output form: a bare <m:oMath>…</m:oMath> in the m: namespace, with no namespace declarations (the math: option's envelope supplies the m prefix).
Parameters ​
| Parameter | Type | Description |
|---|---|---|
mathml | string | a MathML string (e.g. <math>…</math>) |
Returns ​
string
OMML <m:oMath>…</m:oMath>
Throws ​
math/invalid-mathml when the input has no <math> element, or does not convert to an equation. The converter returns the string 'undefined' for such input.