Skip to main content

try_lex_single_tex_formula

Function try_lex_single_tex_formula 

Source
pub fn try_lex_single_tex_formula(
    tex: &str,
    latexml: &mut Core,
) -> Result<LexedFormula>
Expand description

Fallible tokenization of a single formula, without any custom preloads beyond latex and amsmath. Used by latexmlmath_oxide so a TeX Fatal surfaces as a clean error instead of panicking.