katex
0.19.1 · 23 Oct 2026MIT47.8M / weekRepositoryHomepagenpmAtom feed
0.19.1 is the newest release of 0.12.x.
In short
1 breaking9 new15 fixed7 changed
- Breaking
IE 9/10 support
Security
5 advisories affect 0.12.0; 0.18.2 fixes them
- ModerateKaTeX \htmlData does not validate attribute namesGHSA-cg87-wmx4-v546 · 17 Jan 2025Fixed in 0.16.21
- ModerateKaTeX missing normalization of the protocol in URLs allows bypassing forbidden protocolsGHSA-3wc5-fcw2-2329 · 25 Mar 2024Fixed in 0.16.10
- ModerateKaTeX's `\includegraphics` does not escape filenameGHSA-f98w-7cxr-ff2h · 25 Mar 2024Fixed in 0.16.10
- ModerateKaTeX's maxExpand bypassed by `\edef`GHSA-64fm-8hw2-v72w · 25 Mar 2024Fixed in 0.16.10
- LowKaTeX: Existing prototype pollution can bypass trust restrictionsGHSA-238p-pmpm-9mq7 · 5 Oct 2026Fixed in 0.18.2
Release note
Added
globalGroupoption to place definitions in global scope\cal{rcases}and{drcases}HTML extension
HTML extension can be enabled using
strictandtrustsetting. See katex.org/docs/options.html for more details. Please review its security implication before enabling the extension.
\message,\errmessage, and\showfor debuggingbra-ket notation
\expandafter,\noexpand,\edef,\let, and\longSupport MathML display mode
\minuso
Changed
Update documentation (#2086, #2108, #2107, #2106, #2143, #2178, #2195, #2231, #2239, #2263, #2279, #2289, #2280. #2269, #2294, #2296, #2297)
mathtex-script: Use html 'defer' attributeauto-render: do not touch text nodes w/o formulasMove \global and \def to functions
Cleanup font build scripts & font updates (#2155, #2171, #2156)
BREAKING CHANGE: old-style numerals are now available via
\mathnormalinstead of\mathcal
Upgrade minimum development Node version to v10
Removed
- Breaking
IE 9/10 support
Fixed
Set
border-collapse: collapsein vlist, fix misalignment in table\@ifnextcharconsumes spacesAdd spacing on left of fleqn display math
Fix
\boxedinherited colorFix laps having visible width in Safari
Improve MathML for corners
auto-render: ignore "option" tagsFix delimiter error message
Fix under accent depth
Enable empty environment
Enable an empty
\substackFix jagged parentheses
\boldsymbolnot italic for textords such as Greek (#2290, #2299)Protect fraction bars from CSS border-color
Reset to leftmost spacing mode after newline
Fix missing metrics for space (0x20) and no-break space (0xa0)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.