Ver código fonte

don't parse math equations in code blocks

Hakim El Hattab 8 meses atrás
pai
commit
5a275f223b
3 arquivos alterados com 1 adições e 2 exclusões
  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 => {

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 1
plugin/math/math.esm.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
plugin/math/math.js


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff