File tree 1 file changed +9
-18
lines changed
1 file changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -63,22 +63,13 @@ plugins:
63
63
repo_url : https://github.com/scicode-bench/website-draft
64
64
repo_name : sicode-bench/website-draft
65
65
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
+ })
84
75
})
You can’t perform that action at this time.
0 commit comments