mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-04 13:47:37 +02:00
MathJax3: allow non-singleton Reveal instance
This commit is contained in:
@@ -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();
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
Reference in New Issue
Block a user