ソースを参照

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 => {

ファイルの差分が大きいため隠しています
+ 0 - 1
plugin/math/math.esm.js


ファイルの差分が大きいため隠しています
+ 0 - 0
plugin/math/math.js


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません