diff --git a/docs/javascripts/mathjax.js b/docs/javascripts/mathjax.js new file mode 100644 index 0000000..6bb37b3 --- /dev/null +++ b/docs/javascripts/mathjax.js @@ -0,0 +1,9 @@ +window.MathJax = { + tex: { + inlineMath: [["\\(", "\\)"]], + displayMath: [["\\[", "\\]"]], + }, + options: { + processHtmlClass: "arithmatex", + }, +}; diff --git a/mkdocs.yml b/mkdocs.yml index b7b925f..79e88b2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -78,6 +78,10 @@ markdown_extensions: custom_checkbox: true - pymdownx.tilde +extra_javascript: + - javascripts/mathjax.js + - https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js + nav: - 首页: index.md - 项目: