Files
Michael Weinold d0ddf8249a initial commit
2025-05-30 18:48:21 +02:00

11 lines
395 B
JavaScript

// https://squidfunk.github.io/mkdocs-material/reference/math/#katex
document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true }
],
})
})