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>): HTMLElement

Parameters:

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

Returns: HTMLElement — The rendered HTML element.