aboutsummaryrefslogtreecommitdiff
path: root/plugin/math
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-07-07 11:50:08 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-07-07 11:50:08 +0200
commit852fea4133a190a6008e41638b0de41e1909cebb (patch)
tree4dfd5129283ce65e58e6289808b8043e82505560 /plugin/math
parentc96a5d6ae3e397d4f6000c245cd28f38ce7c7f3d (diff)
parent0cb4d1050438d4c42ec1c7609b4791f973dfa577 (diff)
downloadperl-software-in-gnu-guix-852fea4133a190a6008e41638b0de41e1909cebb.tar
perl-software-in-gnu-guix-852fea4133a190a6008e41638b0de41e1909cebb.tar.gz
Merge pull request #1205 from gothma/mathjax-md
Allow tex parsing in <code> tags
Diffstat (limited to 'plugin/math')
-rwxr-xr-xplugin/math/math.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/math/math.js b/plugin/math/math.js
index 25b7516..c0a691d 100755
--- a/plugin/math/math.js
+++ b/plugin/math/math.js
@@ -14,7 +14,10 @@ var RevealMath = window.RevealMath || (function(){
MathJax.Hub.Config({
messageStyle: 'none',
- tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] },
+ tex2jax: {
+ inlineMath: [['$','$'],['\\(','\\)']] ,
+ skipTags: ['script','noscript','style','textarea','pre']
+ },
skipStartupTypeset: true
});