Parcourir la source

don't parse math equations in code blocks

Hakim El Hattab il y a 8 mois
Parent
commit
5a275f223b
3 fichiers modifiés avec 1 ajouts et 2 suppressions
  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 => {

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 1
plugin/math/math.esm.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
plugin/math/math.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff