diff --git a/plugin/math/mathjax2.js b/plugin/math/mathjax2.js index daebe7e86b..17df85c960 100644 --- a/plugin/math/mathjax2.js +++ b/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 }; diff --git a/plugin/math/mathjax3.js b/plugin/math/mathjax3.js index 767129c1c1..68572aa1ff 100644 --- a/plugin/math/mathjax3.js +++ b/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: () => {