tweak plugin initialization to enable multi-instance plugins
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author Hakim El Hattab
|
||||
*/
|
||||
var RevealMath = (function(){
|
||||
let Plugin = (function(){
|
||||
|
||||
var options = Reveal.getConfig().math || {};
|
||||
var mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js';
|
||||
@ -91,4 +91,4 @@ var RevealMath = (function(){
|
||||
|
||||
})();
|
||||
|
||||
export default RevealMath;
|
||||
export default () => Plugin;
|
||||
|
Reference in New Issue
Block a user