diff options
author | Hakim El Hattab | 2018-08-01 10:34:55 +0200 |
---|---|---|
committer | Hakim El Hattab | 2018-08-01 10:34:55 +0200 |
commit | b6aa0cac2392d69c93bda583c88cb6c4fd82b095 (patch) | |
tree | 4adab8ecbbce1db6a785700503d142dbad04c735 /plugin/math/math.js | |
parent | f6f7f58537c21435c4e2ffe8b538216eeac16ae4 (diff) | |
parent | b9bb353a11bb7bcd1f79a40a80e0d5dfcca05591 (diff) |
Merge branch 'dev' of github.com:hakimel/reveal.js
Diffstat (limited to 'plugin/math/math.js')
-rwxr-xr-x | plugin/math/math.js | 8 |
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 }); |