diff --git a/src/components/HTMLLoader.jsx b/src/components/HTMLLoader.jsx index 8fcffbe0..c8cd38df 100644 --- a/src/components/HTMLLoader.jsx +++ b/src/components/HTMLLoader.jsx @@ -24,7 +24,7 @@ function HTMLLoader({ function typeset(code) { promise = promise.then(() => { - if (typeof window?.MathJax !== 'undefined') { + if (typeof window?.MathJax !== 'undefined' && typeof window?.MathJax.startup !== 'undefined') { window.MathJax.startup.defaultPageReady().then((window.MathJax?.typesetPromise(code()))); } return null;