Merge pull request #3595 from jokester/mathjax3-fix-for-multiple-instances
This commit is contained in:
commit
334abff10f
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ export const MathJax3 = () => {
|
||||||
ready: () => {
|
ready: () => {
|
||||||
MathJax.startup.defaultReady();
|
MathJax.startup.defaultReady();
|
||||||
MathJax.startup.promise.then(() => {
|
MathJax.startup.promise.then(() => {
|
||||||
Reveal.layout();
|
deck.layout();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -66,7 +66,7 @@ export const MathJax3 = () => {
|
||||||
|
|
||||||
loadScript( url, function() {
|
loadScript( url, function() {
|
||||||
// Reprocess equations in slides when they turn visible
|
// Reprocess equations in slides when they turn visible
|
||||||
Reveal.addEventListener( 'slidechanged', function( event ) {
|
deck.addEventListener( 'slidechanged', function( event ) {
|
||||||
MathJax.typeset();
|
MathJax.typeset();
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue