From 7b8cf30732ae13e330bbdee93f17a8f5e3d436b2 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Fri, 27 Aug 2021 02:38:46 +0800 Subject: [PATCH] Use MathJax.typesetPromise * See: https://github.com/next-theme/hexo-theme-next/issues/355 --- source/js/third-party/math/mathjax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/third-party/math/mathjax.js b/source/js/third-party/math/mathjax.js index 7c7c487..fe4d448 100644 --- a/source/js/third-party/math/mathjax.js +++ b/source/js/third-party/math/mathjax.js @@ -31,6 +31,6 @@ document.addEventListener('page:loaded', () => { MathJax.startup.document.state(0); MathJax.typesetClear(); MathJax.texReset(); - MathJax.typeset(); + MathJax.typesetPromise(); } });