Four packages, two engines, two delivery models. Pick the one that
matches your bundle budget and LaTeX complexity:
Package
Engine
Delivery
@jupyter-kit/katex
KaTeX
bundled
@jupyter-kit/katex-cdn
KaTeX
fetched from jsdelivr
@jupyter-kit/mathjax
MathJax
bundled
@jupyter-kit/mathjax-cdn
MathJax
fetched from jsdelivr
Bundled variants ship the engine with your site — offline-safe, larger.
CDN variants fetch the engine at runtime — smaller bundle, first render
pays a network fetch (cached afterwards).
@jupyter-kit/katex (bundled)
exporttype KatexPluginOptions = {
remarkMathOptions?:RemarkMathOptions;
katexOptions?:KatexOptions;
};
Option
Type
Notes
remarkMathOptions
RemarkMathOptions
Passed to remark-math. Default: {}.
katexOptions
KatexOptions
Passed to KaTeX. Useful keys: throwOnError, displayMode, macros.
KaTeX release to pin. Baked into the default src only.
src
string | string[]
single jsdelivr URL built from version
CDN base URL (directory holding katex.min.js, katex.min.css, contrib/auto-render.min.js) or an ordered fallback list. First candidate that loads wins.
timeoutMs
number
10000
Per-candidate script-load timeout in ms. 0 disables. Guards against hung CDNs that open the connection then stall (browsers never fire onerror for those).