Skip to content
Snippets Groups Projects
Commit c9853233 authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

rename math plugin config option

parent 271bae6b
Branches
No related tags found
No related merge requests found
......@@ -183,7 +183,7 @@
math: {
// mathjax: 'http://cdn.mathjax.org/mathjax/latest/MathJax.js',
dialect: 'TeX-AMS_HTML-full'
config: 'TeX-AMS_HTML-full'
},
dependencies: [
......
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment