docs: fix KaTeX instant loading

This commit is contained in:
Sina Atalay 2024-02-24 16:15:44 +01:00
parent 31cac973ee
commit 1e03cef907
1 changed files with 9 additions and 10 deletions

View File

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