katex
0.19.1 · 23 Oct 2026MIT47.8M / weekRepositoryHomepagenpmAtom feed
118 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.16.x
0.16.12
8 Dec 2024css: configurable margin for display math
0.16.10
24 Mar 2024\edef bypassing maxExpand via exponential blowup
Escape \includegraphics src and alt
Force protocol to be lowercase for better protocol filtering (fc5af64), closes /datatracker.ietf.org/doc/html/rfc3986#section-3
Bug Fixes
\edef bypassing maxExpand via exponential blowup
Escape \includegraphics src and alt
Force protocol to be lowercase for better protocol filtering (fc5af64), closes /datatracker.ietf.org/doc/html/rfc3986#section-3
maxExpand limit with Unicode sub/superscripts
0.16.9
2 Oct 2023Support bold Fraktur
0.16.8
24 Jun 2023Expose error length and raw error message on ParseError
0.16.7
28 Apr 2023docs/support_table.md: delete redundant "varPsi"
0.16.2
29 Aug 2022auto-render: concatenate content of successive text nodes
Implement \pmb via CSS text-shadow
0.16.1
28 Aug 2022Use SVGs for some stacked delims
0.16.0
6 Jun 2022- Breaking
copy-tex: copy-tex extension no longer has (or requires) a CSS file.
copy-tex: Use JS (instead of CSS) to select full equation, solving display glitches
- 0.15.x
0.15.6
20 May 2022Support \Braket, \set, and \Set
0.15.5
20 May 2022Avoid crash when \ce{} is empty
0.15.4
20 May 2022Support Unicode (sub|super)script characters
0.15.3
13 Mar 2022Apply operator spacing to Unicode ∙ ∘ ∖
0.15.0
31 Oct 2021- Breaking
\relaxis now implemented as a function. It'll stop expansions and parsing, so the behavior around\relaxmay change. For example,\kern2\relax emwill no longer work. Implement \relax as no-op function
- 0.14.x
0.14.1
30 Oct 2021Settings: use schema
0.14.0
30 Oct 2021- Breaking
With module loaders that support conditional exports and ECMAScript modules,
import katex from 'katex';will import the ECMAScript module. Conditionally export ECMAScript modules
Features
Conditionally export ECMAScript modules
Breaking changes
- Breaking
With module loaders that support conditional exports and ECMAScript modules,
import katex from 'katex';will import the ECMAScript module.
You can now use:
Before After require('katex/dist/contrib/[name].js')require('katex/contrib/[name]')import katex from 'katex/dist/katex.mjs'import katex from 'katex'import 'katex/dist/contrib/[name].mjs'import 'katex/contrib/[name]'- 0.13.x
0.13.24
30 Oct 2021Round dimensions to 4 places
0.13.22
30 Oct 2021Only updates a dependency:commander 8
0.13.21
29 Oct 2021fonts: fix the timestamp of fonts to the epoch
0.13.16
28 Aug 20210.13.14
28 Aug 2021fonts: update fonts dependencies
0.13.13
21 Jul 2021Add namespace for svg, making output XHTML+SVG+MathML compatible
0.13.10
12 May 2021Correct for negative margin in integrand lower limits
0.13.8
6 May 2021\operatornamewithlimits (and clean up \operatorname support)
0.13.7
6 May 2021Binom delimiter size in scriptscriptstyle.
0.13.5
2 May 2021Support \S and \P in math mode
0.13.4
2 May 2021Avoid crash when \operatorname has \limits
0.13.2
6 Apr 2021Update version and SRI in dist/README.md
0.13.1
5 Apr 2021Protect fraction bars from CSS border-color
0.13.0
9 Mar 2021Remove topEnv parameter.
builder: Combine characters together in all expressions
Prevent global group from adversely affecting color.
Bug Fixes
Remove topEnv parameter.
builder: Combine characters together in all expressions
Prevent global group from adversely affecting color.
Use SVGs to avoid gaps in tall delimiters.
Rewrite of splitAtDelimiters.js -- new fix for #2523
Improve MathML for math operators with subscripts
Remove premature CD screenshotter images
Support Armenian characters
MathML \lim\limits in Safari
Support MathML \oiint and \oiiint
Features
Support \underbar
Add {CD} to auto-render.
Set Auto-render to recognize AMS environments without $$…$$ delimiters.
Support {CD}
Support \vcenter and \hbox
function: Add
allowedInArgumentinstead ofgreedinesspropertySupport matrix*, pmatrix*, bmatrix*, Bmatrix*, vmatrix*, and Vmatrix*.
macro: Improve argument parsing
Support AMS log-like symbols
Support Unicode ◯, U+25EF
Support \phase
Support \mathstrut
Support {equation}, {equation*}, and {split}
css: Use postcss-preset-env
Support {align}, {align*}, {alignat}, and {alignat*}
Support {gather} and {gather*}
Support MathML \big, \bigg, \Big, and \Bigg
Support \angl and \angln
Support \origof and \imageof
Other Changes
browserslist: Remove Chrome 49, Samsung 4, and Node
Configure Renovate
Update LICENSE year
Fix test/symgroups.js
Use base revision provided by CircleCI
Delete bower.json
Enable a MathML option in the KaTeX demo.
Create dependabot.yml
Run screenshotter using Chrome 83 and Firefox 76
- 0.12.x
0.12.0
12 Jul 2020- Breaking
IE 9/10 support
globalGroupoption to place definitions in global scope\cal
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)
- 0.11.x
0.11.1
18 Sep 2019Fix parse timing by separating consume() into fetch() and consume()
Use current font for accents
Fix \gray's macro definition
Fixed
Fix parse timing by separating consume() into fetch() and consume()
Use current font for accents
Fix \gray's macro definition
0.11.0
13 Aug 2019- Breaking
trustsetting to indicate whether input text is trusted Add test for double square brackets to katex-spec
Add option to render only MathML so that its visible
Added
- Breaking
trustsetting to indicate whether input text is trusted\hrefand\urlwill break without adjusting thetrustsettingSee katex.org/docs/options.html for details on
trustsetting
Add test for double square brackets to katex-spec
Add option to render only MathML so that its visible
Support {smallmatrix}, {subarray}, and \substack
Enable minRuleThickness in rendering options
Add \plim
Support Unicode \digamma
Support \operatorname*
Support \includegraphics, with appropriate trust setting
Add render-a11y-string add-on
Changed
Remove unclosed TODO comment
Add "Tutti Quanti Shelf" app to users page
Document mhchem \cf not supported (use \ce instead)
Replace greenkeeper badge with dependabot badge
Add Unicode digamma to documentation
Add katex-expression to libs page
Suggest <!DOCTYPE html> in documentation
Unicode characters in math render in text mode
Fixed
Improve output of fonts in MathML
Fix \pmb
\color affects following \right, put array cells in their own groups
Improve MathML for classes
Prevent gaps in tall delimiters
Fix \sqrt SVG path
Do not force sizing groups to display inline-block
Fix font choice in operators like \log (e.g. \boldsymbol{\log})
Fix argument font sizing in \fbox and \raisebox, fix font sizing in \TeX, \LaTeX, \KaTeX
- 0.10.x
0.10.2
13 May 2019Approximate font metrics only when metrics don't exist
Add KaTeX version to stylesheet and troubleshooting guide
Added
Approximate font metrics only when metrics don't exist
Add KaTeX version to stylesheet and troubleshooting guide
Support double-square curly braces
Changed
Upgrade minimum development Node version to v8
Disable @babel/env debug
Add issue templates
Added 'katex-element'
Fix Users' logo and url
Load fonts before running screenshotter
Add Browserstack logo
Added Android library
Move custom colors used by Khan into macros.js
Test for duplicate symbols/macros
Include extensions mhchem & copy-tex in home-page
Re-added code for \includegraphics but disabled the function until trust settings is merged
Fixed
Fix \Rho
Fix nested \dfrac
Improve MathML accents
Improve MathML for \overset, \stackrel, and \underset
Fix \not (U+E020) RBearing (width)
Fix ApplyFunction character
Improve MathML for \limits
Improve MathML for \hphantom and \vphantom
Improve MathML for \coloneqq, \dblcolon, \eqcolon, and \eqqcolon
Improve MathML for \brace
Fix \middle spacing
Get a tall \middle\vert from MathML
Improve more coloneq
Make \smallint small in \displaystyle
Improve MathML for characters in Unicode private use area
Improve MathML for extensible arrows
Improve MathML for \rule
Improve MathML for fractions
Improve MathML for \tag
Improve MathML for \colorbox and \fcolorbox
Improve MathML for environments
Improve MathML for \genfrac barline
Support \textup and \textmd
Improve MathML for \not
Improve MathML for \Bbbk
Prevent inadvertent tall delims
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.