convert plugins to ES modules, transpile es5 versions backwards compatibility
This commit is contained in:
7
plugin/math/math.es5
Normal file
7
plugin/math/math.es5
Normal file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* This is used to compile a self-registering
|
||||
* es5 compatible version of the plugin.
|
||||
*/
|
||||
|
||||
import plugin from './math.js'
|
||||
Reveal.registerPlugin( plugin );
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @author Hakim El Hattab
|
||||
*/
|
||||
var RevealMath = window.RevealMath || (function(){
|
||||
var RevealMath = (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 = window.RevealMath || (function(){
|
||||
|
||||
})();
|
||||
|
||||
Reveal.registerPlugin( RevealMath );
|
||||
export default RevealMath;
|
||||
|
Reference in New Issue
Block a user