mathjax / MathJax-docs

MathJax documentation. Beautiful math in all browsers. Beautifully documented.
Apache License 2.0
548 stars 231 forks source link

Fixed an issue with a code example #291

Closed pjotrsavitski closed 2 years ago

pjotrsavitski commented 3 years ago

An example returned document.querySelector result passed as a callback to the typeset() function which threw an exception because MathJax.typesetPromise() requires an iterable not just a Node. Changed the example to return an array with that node instead.