Expand description
Engine preset helpers used by both the production
latexmlmath_oxide binary and by the test harness. Always
compiled — no test-only dependencies.
Reusable engine presets that don’t depend on the test harness.
Extracted from util/test.rs (audit DEP-02, 2026-05-18) so the
latexmlmath_oxide standalone binary can build without the test
harness’s glob/phf dependencies. The two helpers here have no
ties to the harness machinery — they just construct a minimal
Core and tokenize a single inline formula.
Functions§
- lex_
single_ tex_ formula - Simple tokenization of a single formula, without any custom preloads beyond latex and amsmath.
- new_
test_ engine - Provide a default
Coreengine preloaded witharticle.clsandamsmath.sty— the minimum needed to digest most formulae.