rename math plugin config option
authorHakim El Hattab <hakim.elhattab@gmail.com>
Sun, 18 Aug 2013 18:13:55 +0000 (14:13 -0400)
committerHakim El Hattab <hakim.elhattab@gmail.com>
Sun, 18 Aug 2013 18:13:55 +0000 (14:13 -0400)
examples/math.html
plugin/math/math.js

index 867c45eeb3af4b99955c679c659d3082d6c4c52b..b0f07630018bc2da2e5eccd3dadeea6547d232e6 100644 (file)
 
                                math: {
                                        // mathjax: 'http://cdn.mathjax.org/mathjax/latest/MathJax.js',
-                                       dialect: 'TeX-AMS_HTML-full'
+                                       config: 'TeX-AMS_HTML-full'
                                },
 
                                dependencies: [
index 4e3402e5ce6a58a83e8db25071e38ed60ab78bf0..d55d9d1a73463191a0d82d8a286518a8d5ac92b1 100755 (executable)
@@ -6,11 +6,11 @@
  */
 var RevealMath = window.RevealMath || (function(){
 
-       var config = Reveal.getConfig().math || {};
-       config.mathjax = config.mathjax || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js';
-       config.dialect = config.dialect || 'TeX-AMS_HTML-full';
+       var options = Reveal.getConfig().math || {};
+       options.mathjax = options.mathjax || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js';
+       options.config = options.config || 'TeX-AMS_HTML-full';
 
-       loadScript( config.mathjax + '?config=' + config.dialect, function() {
+       loadScript( options.mathjax + '?config=' + options.config, function() {
 
                MathJax.Hub.Config({
                        messageStyle: 'none',