default mathjax config now ignores code tags

This commit is contained in:
Hakim El Hattab
2024-11-18 08:26:23 +01:00
parent fe4a6e82b0
commit 0d02d8a303
2 changed files with 2 additions and 2 deletions

View File

@@ -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
};