Browse Source

rename math plugin config option

embed
Hakim El Hattab 11 years ago
parent
commit
c9853233ae
  1. 2
      examples/math.html
  2. 8
      plugin/math/math.js

2
examples/math.html

@ -183,7 +183,7 @@
math: { math: {
// mathjax: 'http://cdn.mathjax.org/mathjax/latest/MathJax.js', // mathjax: 'http://cdn.mathjax.org/mathjax/latest/MathJax.js',
dialect: 'TeX-AMS_HTML-full' config: 'TeX-AMS_HTML-full'
}, },
dependencies: [ dependencies: [

8
plugin/math/math.js

@ -6,11 +6,11 @@
*/ */
var RevealMath = window.RevealMath || (function(){ var RevealMath = window.RevealMath || (function(){
var config = Reveal.getConfig().math || {}; var options = Reveal.getConfig().math || {};
config.mathjax = config.mathjax || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js'; options.mathjax = options.mathjax || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js';
config.dialect = config.dialect || 'TeX-AMS_HTML-full'; 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({ MathJax.Hub.Config({
messageStyle: 'none', messageStyle: 'none',

Loading…
Cancel
Save