This commit is contained in:
krahets
2023-07-17 18:54:16 +08:00
parent 0595a60b61
commit 16ea8d54f9
3 changed files with 26 additions and 0 deletions

16
javascripts/mathjax.js Normal file
View File

@ -0,0 +1,16 @@
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true,
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex",
},
};
document$.subscribe(() => {
MathJax.typesetPromise();
});