Bladeren bron

Merge pull request #1205 from gothma/mathjax-md

Allow tex parsing in <code> tags
Hakim El Hattab 9 jaren geleden
bovenliggende
commit
852fea4133
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      plugin/math/math.js

+ 4 - 1
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
 		});