This commit is contained in:
krahets
2023-07-17 18:54:07 +08:00
parent fd25241579
commit a2c937df3d
2 changed files with 26 additions and 0 deletions

10
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 },
],
});
});