Notes/javascripts/katex.js

10 lines
326 B
JavaScript
Raw Normal View History

2024-05-06 08:39:18 +00:00
document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true }
],
})
})