An options object for parsing & rendering KaTeX. See the KaTeX docs for more info.
displayMode: boolean
Whether or not to render in display mode. Defaults to false
.
output: "html"
| "mathml"
| "htmlAndMathml"
Defines the output language, defaults to mathml
; this differs from the
default KaTeX has!
Stands for "left equation numbers". Puts the label on the left when using numbered equations. Off by default.
throwOnError: boolean
When parsing, throw instead of rendering an errored-out equation. Off by default; note that this differs from the KaTeX default!
errorColor: string
A hex color (either three or six digits) to use when rendering an error.
Defaults to #cc0000
.
A collection of custom macros. Note that this object can be modifier by
documents using e.g. \gdef
. Does not come with macros by default.
minRuleThickness: number
A minimum thickness for "rules", e.g. the line in a fraction.
Limits the number of macro expansions to prevent infinite loops. Set to
Infinity
if you dare. Defaults to 1000
.
Defines what should throw errors. Defaults to "warn", meaning it tries to help you conform to LaTeX-style TeX.
Whether or not to trust user input. false
by default.
globalGroup: boolean
Run KaTeX code in the global group. false
by default, to align with
LaTeX.