MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

load formula without page refresh

Open saraOrkide opened this issue 2 years ago • 1 comments

In typeset version 2, I could load the formulas without refreshing the page with this piece of code: window.MathJax.Hub.Queue([ "Typeset", window.MathJax.Hub, math ]); How can I do this now in version 3?

saraOrkide avatar Jan 02 '24 14:01 saraOrkide

As the documentation points out, the call is MathJax.typesetPromise(). In your case you would use

MathJax.typesetPromise([math])

if math is a DOM element whose content includes mathematics.

dpvc avatar Jan 02 '24 16:01 dpvc