Skip to content

renderMath

renderMath(source, display): HTMLElement

Defined in: obsidian.d.ts:3456

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