Skip to content

MathJaxEx.tex2chtml method

MathJaxEx › tex2chtml

Unofficial

Convert a TeX string to a CHTML (HTML) element synchronously.

Signature:

tex2chtml(math: string, options?: Record<string, unknown> | undefined): HTMLElement

Parameters:

ParameterTypeDescription
mathstringTeX string to convert.
options?Record<string, unknown> | undefinedOptional rendering options.

Returns: HTMLElementThe rendered HTML element.