Skip to content

Commit

Permalink
rename math plugin config option
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Aug 18, 2013
1 parent 271bae6 commit c985323
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/math.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ <h3>Maxwell&#8217;s Equations</h3>

math: {
// mathjax: 'http://cdn.mathjax.org/mathjax/latest/MathJax.js',
dialect: 'TeX-AMS_HTML-full'
config: 'TeX-AMS_HTML-full'
},

dependencies: [
Expand Down
8 changes: 4 additions & 4 deletions plugin/math/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c985323

Please sign in to comment.