Skip to content

Commit

Permalink
default mathjax config now ignores code tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Nov 18, 2024
1 parent fe4a6e8 commit 0d02d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/math/mathjax2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down
2 changes: 1 addition & 1 deletion plugin/math/mathjax3.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const MathJax3 = () => {
inlineMath: [ [ '$', '$' ], [ '\\(', '\\)' ] ]
},
options: {
skipHtmlTags: [ 'script', 'noscript', 'style', 'textarea', 'pre' ]
skipHtmlTags: [ 'script', 'noscript', 'style', 'textarea', 'pre', 'code' ]
},
startup: {
ready: () => {
Expand Down

0 comments on commit 0d02d8a

Please sign in to comment.