MathJaxEx.tex2chtmlPromise method
MathJaxEx › tex2chtmlPromise
Unofficial
Convert a TeX string to a CHTML (HTML) element asynchronously.Signature:
tex2chtmlPromise(math: string, options?: Record<string, unknown>): Promise<HTMLElement>Parameters:
| Parameter | Type | Description |
|---|---|---|
| math | string | TeX string to convert. |
| options? | Record<string, unknown> | Optional rendering options. |
Returns: Promise<HTMLElement> — The rendered HTML element.