Skip to content

Commit

Permalink
Update mkdocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mtian8 authored Jul 14, 2024
1 parent f5c492b commit d63fe51
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,13 @@ plugins:
repo_url: https://github.com/scicode-bench/website-draft
repo_name: sicode-bench/website-draft
edit_uri: edit/main/docs/
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex"
}
};

document$.subscribe(() => {
MathJax.startup.output.clearCache()
MathJax.typesetClear()
MathJax.texReset()
MathJax.typesetPromise()
document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true }
],
})
})

0 comments on commit d63fe51

Please sign in to comment.