Skip to content

MathJaxEx.tex2chtmlPromise method

MathJaxEx › tex2chtmlPromise

Unofficial

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

Signature:

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

Parameters:

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

Returns: Promise<HTMLElement>The rendered HTML element.