Skip to content

Commit

Permalink
Merge pull request #3595 from jokester/mathjax3-fix-for-multiple-inst…
Browse files Browse the repository at this point in the history
…ances
  • Loading branch information
hakimel authored Mar 23, 2024
2 parents 0799c8f + 19c1bca commit 334abff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/math/mathjax3.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const MathJax3 = () => {
ready: () => {
MathJax.startup.defaultReady();
MathJax.startup.promise.then(() => {
Reveal.layout();
deck.layout();
});
}
}
Expand Down Expand Up @@ -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();
} );
} );
Expand Down

0 comments on commit 334abff

Please sign in to comment.