Browse Source

don't parse math equations in code blocks

Hakim El Hattab 6 months ago
parent
commit
5a275f223b
3 changed files with 1 additions and 2 deletions
  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