This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Public Method Questions API

renderMath()

Renders all Latex or MathML elements on the page with MathJax.

If the "mathquill" renderer is used, only Latex inside an .lrn parent will be rendered.

Arguments

  • renderer string

    Default: "mathjax"

    Possible values:
    • "mathjax"
    • "mathquill"

Return value

a Promise which is resolved when all the Latex or MathML elements on the page have been rendered.

Was this article helpful?