npm / katex
katex
What changed in katex 0.16 to 0.19, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
3 breaking2 security4 new APIs and options1 performance4 behavior and defaults1 tooling26 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initkatex 0.192 changes
Breaking changes 1
Missing character metrics are reported through strict with error code symbolNotInFont; warning formatting changes, strict callbacks are called, and strict: "error" mode produces errors.
Behavior and default changes 1
Strict callbacks returning undefined or null now warn instead of ignoring the issue; return false or "ignore" to suppress warnings.
katex 0.1814 changes
Breaking changes 1
CSS classes are prefixed; users with custom styles or allowlists targeting KaTeX's internal classes must update their selectors.
Security 2
KaTeX: Existing prototype pollution can bypass trust restrictions
Prevents prototype pollution through settings.
New APIs and options 2
Adds support for the \mapsfrom command.
Adds support for the \reflectbox command.
Behavior and default changes 2
The strict option now handles character metrics warnings.
KaTeX now falls back to the browser math font before Times New Roman.
Tooling 1
Type declarations were added for contrib modules, improving TypeScript support when using them.
Fixes and other changes 6
Trailing rows in align are now preserved.
Preserves tags on empty final rows in array environments.
Accepts U+10FFFF.
Invalid environment names are now reported as ParseError, allowing callers to handle them as parse errors.
Delimsizing now allows braced arguments.
\htmlData now allows escaped commas in its input.
katex 0.171 changes
Breaking changes 1
The internal API changed; properties should no longer be wrapped in props.
katex 0.1624 changes
New APIs and options 2
Adds the \overbracket command.
Adds the \underbracket command.
Performance 1
Fixes bloat in contrib ESM bundles, which may reduce bundle size for developers using them.
Behavior and default changes 1
\htmlData attribute values now support equals signs and surrounding whitespace.
Fixes and other changes 20
Corrects the size of the
[big delimiter.Some styling commands now preserve the math font.
Wraps vcenter mpadded in mrow to produce valid MathML.
Removes extra \jot space at the bottom of align, gather, and similar environments.
Long CSS decimals are truncated consistently using makeEm().
Fixes \sout in text mode.
The .katex CSS class now specifies position: relative.
Fixes the middle dot in text mode.
Fixed accent skew when mixed with font specifiers.
Fixed handling of negative-width \hphantom.
Fixed symmetric \smash behavior.
Fixes a version number regression.
Fixes handling of emoji with variation selectors.
SCSS variables are now forwarded to the fonts module.
Fixes italic separation in \mathnormal.
Fixes sizing for fraction commands.
Prevents line breaks after \not.
Fixed \html@mathml macros, including \imath, when used in arguments.
Adds the missing type-definition path so TypeScript consumers can resolve KaTeX types.
Fixes an issue with \mathop followed by an integral symbol.