summaryrefslogtreecommitdiffhomepage
path: root/plugin/math/math.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/math/math.js')
-rwxr-xr-xplugin/math/math.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugin/math/math.js b/plugin/math/math.js
index d55d9d1..c0a691d 100755
--- a/plugin/math/math.js
+++ b/plugin/math/math.js
@@ -7,14 +7,17 @@
var RevealMath = window.RevealMath || (function(){
var options = Reveal.getConfig().math || {};
- options.mathjax = options.mathjax || 'http://cdn.mathjax.org/mathjax/latest/MathJax.js';
+ options.mathjax = options.mathjax || 'https://cdn.mathjax.org/mathjax/latest/MathJax.js';
options.config = options.config || 'TeX-AMS_HTML-full';
loadScript( options.mathjax + '?config=' + options.config, function() {
MathJax.Hub.Config({
messageStyle: 'none',
- tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] },
+ tex2jax: {
+ inlineMath: [['$','$'],['\\(','\\)']] ,
+ skipTags: ['script','noscript','style','textarea','pre']
+ },
skipStartupTypeset: true
});