Skip to content

Commit

Permalink
[docs] Add javascript config for MathJax
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvindecosta committed Jul 31, 2020
1 parent d13d707 commit 8712ed5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/assets/js/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true,
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex",
},
};
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ extra_css:
- assets/css/mkdocstrings.css

extra_javascript:
- javascripts/config.js
- assets/js/config.js
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

Expand Down

0 comments on commit 8712ed5

Please sign in to comment.