Every expression rendered three ways, side by side: KaTeX JS (ground truth) · katex
Dart → SVG · katex_flutter Math widget (Flutter web, one engine per row).
display
display-mode expression
approx
known MVP approximation — expected JS/Dart difference, not a bug.
katex is a fresh Dart port of KaTeX. It parses LaTeX math into a backend-agnostic
box tree, then renders that one tree two ways: to SVG with no Flutter dependency
(CLI / server / web / SSR) and as a Flutter widget. This page renders every example three ways — original KaTeX (JS), our Dart → SVG, and the Flutter widget — side by side, so divergences are obvious at a glance.
How it differs from existing packages: tools like flutter_math_fork bolt rendering directly onto Flutter render objects and can't run outside Flutter.
katex instead keeps a shared, backend-agnostic box tree as its core, so the exact same layout drives both the no-Flutter SVG output and the Flutter widget — and box dimensions are verified against original KaTeX.