Parcourir la source

default mathjax config now ignores code tags

Hakim El Hattab il y a 7 mois
Parent
commit
0d02d8a303
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      plugin/math/mathjax2.js
  2. 1 1
      plugin/math/mathjax3.js

+ 1 - 1
plugin/math/mathjax2.js

@@ -13,7 +13,7 @@ export const MathJax2 = () => {
 		messageStyle: 'none',
 		tex2jax: {
 			inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ],
-			skipTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ]
+			skipTags: [ 'script', 'noscript', 'style', 'textarea', 'pre', 'code' ]
 		},
 		skipStartupTypeset: true
 	};

+ 1 - 1
plugin/math/mathjax3.js

@@ -15,7 +15,7 @@ export const MathJax3 = () => {
             inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ]  ]
         },
         options: {
-            skipHtmlTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ]
+            skipHtmlTags: [ 'script', 'noscript', 'style', 'textarea', 'pre', 'code' ]
         },
         startup: {
             ready: () => {