From 19c1bca1e4dc3c0f0973bc93a58a829f508a86b6 Mon Sep 17 00:00:00 2001 From: Wang Guan Date: Sat, 23 Mar 2024 17:22:23 +0900 Subject: [PATCH] MathJax3: allow non-singleton Reveal instance --- plugin/math/mathjax3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/math/mathjax3.js b/plugin/math/mathjax3.js index 9e62d0d1486..767129c1c13 100644 --- a/plugin/math/mathjax3.js +++ b/plugin/math/mathjax3.js @@ -21,7 +21,7 @@ export const MathJax3 = () => { ready: () => { MathJax.startup.defaultReady(); MathJax.startup.promise.then(() => { - Reveal.layout(); + deck.layout(); }); } } @@ -66,7 +66,7 @@ export const MathJax3 = () => { loadScript( url, function() { // Reprocess equations in slides when they turn visible - Reveal.addEventListener( 'slidechanged', function( event ) { + deck.addEventListener( 'slidechanged', function( event ) { MathJax.typeset(); } ); } );