pub fn check(latex: &str) -> Result<(), MathError>
Whether latex parses, without laying it out (cheap enough to run on every keystroke).
latex