Explorar o código

Merge pull request #1205 from gothma/mathjax-md

Allow tex parsing in <code> tags
Hakim El Hattab %!s(int64=9) %!d(string=hai) anos
pai
achega
852fea4133
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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
 		});