浏览代码

Merge pull request #1205 from gothma/mathjax-md

Allow tex parsing in <code> tags
Hakim El Hattab 9 年之前
父节点
当前提交
852fea4133
共有 1 个文件被更改,包括 4 次插入1 次删除
  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
 		});