pub struct MathRoot {
pub display: DisplayMode,
pub displaystyle: Option<bool>,
pub children: Vec<Node>,
pub warnings: Vec<Warning>,
}Expand description
A parsed <math> element.
Fields§
§display: DisplayMode§displaystyle: Option<bool>The displaystyle attribute, overriding the default implied by
display (block → true, inline → false).
children: Vec<Node>The children of <math>, treated as an anonymous mrow.
warnings: Vec<Warning>Recoveries applied during parsing (MathML Core’s error handling lays
out unknown or structurally invalid elements as mrow). Empty means
the markup was fully understood; non-empty markup still renders.
Implementations§
Source§impl MathRoot
impl MathRoot
Sourcepub fn has_arabic_text(&self) -> bool
pub fn has_arabic_text(&self) -> bool
Whether any token content contains Arabic-script characters (including the Arabic Mathematical Alphabetic Symbols block).
Formulary lays out token text in logical order without Arabic
contextual shaping (joining forms) — RTL structure mirroring via
dir is supported, Arabic text is not. Consumers wanting correct
Arabic mathematical notation can gate a fallback renderer on this
instead of on dir="rtl" generally.