Skip to content

Commit

Permalink
don't parse math equations in code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Nov 11, 2024
1 parent f979ff6 commit 5a275f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/math/katex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion plugin/math/math.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin/math/math.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a275f2

Please sign in to comment.