summaryrefslogtreecommitdiffhomepage
path: root/plugin/math/math.js
diff options
context:
space:
mode:
authorHakim El Hattab2018-08-01 10:34:55 +0200
committerHakim El Hattab2018-08-01 10:34:55 +0200
commitb6aa0cac2392d69c93bda583c88cb6c4fd82b095 (patch)
tree4adab8ecbbce1db6a785700503d142dbad04c735 /plugin/math/math.js
parentf6f7f58537c21435c4e2ffe8b538216eeac16ae4 (diff)
parentb9bb353a11bb7bcd1f79a40a80e0d5dfcca05591 (diff)
Merge branch 'dev' of github.com:hakimel/reveal.js
Diffstat (limited to 'plugin/math/math.js')
-rwxr-xr-xplugin/math/math.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/math/math.js b/plugin/math/math.js
index e3b4089..7867376 100755
--- a/plugin/math/math.js
+++ b/plugin/math/math.js
@@ -9,15 +9,15 @@ var RevealMath = window.RevealMath || (function(){
var options = Reveal.getConfig().math || {};
options.mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js';
options.config = options.config || 'TeX-AMS_HTML-full';
+ options.tex2jax = options.tex2jax || {
+ inlineMath: [['$','$'],['\\(','\\)']] ,
+ skipTags: ['script','noscript','style','textarea','pre'] };
loadScript( options.mathjax + '?config=' + options.config, function() {
MathJax.Hub.Config({
messageStyle: 'none',
- tex2jax: {
- inlineMath: [['$','$'],['\\(','\\)']] ,
- skipTags: ['script','noscript','style','textarea','pre']
- },
+ tex2jax: options.tex2jax,
skipStartupTypeset: true
});