Skip to content

Commit 1105f22

Browse files
Update MathJax config to support both dollar sign and LaTeX math syntax
1 parent 9736106 commit 1105f22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • docs/.overrides/assets/javascripts

docs/.overrides/assets/javascripts/extra.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Configure MathJax for pymdownx.arithmatex
22
window.MathJax = {
33
tex: {
4-
inlineMath: [["\\(", "\\)"]],
5-
displayMath: [["\\[", "\\]"]],
4+
inlineMath: [["$", "$"], ["\\(", "\\)"]],
5+
displayMath: [["$$", "$$"], ["\\[", "\\]"]],
66
processEscapes: true,
77
processEnvironments: true
88
},

0 commit comments

Comments
 (0)