Skip to content

Commit d63fe51

Browse files
authoredJul 14, 2024
Update mkdocs.yml
1 parent f5c492b commit d63fe51

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed
 

‎mkdocs.yml

+9-18
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,13 @@ plugins:
6363
repo_url: https://github.com/scicode-bench/website-draft
6464
repo_name: sicode-bench/website-draft
6565
edit_uri: edit/main/docs/
66-
window.MathJax = {
67-
tex: {
68-
inlineMath: [["\\(", "\\)"]],
69-
displayMath: [["\\[", "\\]"]],
70-
processEscapes: true,
71-
processEnvironments: true
72-
},
73-
options: {
74-
ignoreHtmlClass: ".*|",
75-
processHtmlClass: "arithmatex"
76-
}
77-
};
78-
79-
document$.subscribe(() => {
80-
MathJax.startup.output.clearCache()
81-
MathJax.typesetClear()
82-
MathJax.texReset()
83-
MathJax.typesetPromise()
66+
document$.subscribe(({ body }) => {
67+
renderMathInElement(body, {
68+
delimiters: [
69+
{ left: "$$", right: "$$", display: true },
70+
{ left: "$", right: "$", display: false },
71+
{ left: "\\(", right: "\\)", display: false },
72+
{ left: "\\[", right: "\\]", display: true }
73+
],
74+
})
8475
})

0 commit comments

Comments
 (0)