mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 13:46:30 +08:00
34985bdf2b
Enable instant loading feature Fix the math rendering in mathjax.js
16 lines
305 B
JavaScript
16 lines
305 B
JavaScript
window.MathJax = {
|
|
tex: {
|
|
inlineMath: [["\\(", "\\)"]],
|
|
displayMath: [["\\[", "\\]"]],
|
|
processEscapes: true,
|
|
processEnvironments: true,
|
|
},
|
|
options: {
|
|
ignoreHtmlClass: ".*|",
|
|
processHtmlClass: "arithmatex",
|
|
},
|
|
};
|
|
|
|
document$.subscribe(() => {
|
|
MathJax.typesetPromise();
|
|
});
|