renderMath

renderMath() function

Render some LaTeX math using the MathJax engine. Returns an HTMLElement. Requires calling finishRenderMath when rendering is all done to flush the MathJax stylesheet.

Signature:

export function renderMath(source: string, display: boolean): HTMLElement;

Parameters

ParameterTypeDescription
sourcestring
displayboolean

Returns:

HTMLElement