This commit is contained in:
krahets
2023-12-22 00:01:12 +08:00
parent 8c6684bac2
commit db41463da8
249 changed files with 36239 additions and 108 deletions

10
en/javascripts/katex.js Normal file
View File

@@ -0,0 +1,10 @@
document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true },
],
});
});

17
en/javascripts/mathjax.js Normal file
View File

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