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:

Parameter Type Description
math string TeX string to convert.
options? Record<string, unknown> | undefined Optional rendering options.

Returns: HTMLElementThe rendered HTML element.