瀏覽代碼

don't parse math equations in code blocks

Hakim El Hattab 8 月之前
父節點
當前提交
5a275f223b
共有 3 個文件被更改,包括 1 次插入2 次删除
  1. 1 1
      plugin/math/katex.js
  2. 0 1
      plugin/math/math.esm.js
  3. 0 0
      plugin/math/math.js

+ 1 - 1
plugin/math/katex.js

@@ -16,7 +16,7 @@ export const KaTeX = () => {
 			{left: '\\(', right: '\\)', display: false},
 			{left: '\\[', right: '\\]', display: true}
 		],
-		ignoredTags: ['script', 'noscript', 'style', 'textarea', 'pre']
+		ignoredTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
 	}
 
 	const loadCss = src => {

File diff suppressed because it is too large
+ 0 - 1
plugin/math/math.esm.js


File diff suppressed because it is too large
+ 0 - 0
plugin/math/math.js


Some files were not shown because too many files changed in this diff