소스 검색

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
 		});