Notes/javascripts/katex.js
2024-05-06 16:39:18 +08:00

10 lines
326 B
JavaScript
Executable File

document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true }
],
})
})