Skip to content

renderMath

Code location

renderMath(source, display): HTMLElement

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

Parameters

source: string

display: boolean

Returns

HTMLElement