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 }) => { document$.subscribe(() => {
renderMathInElement(body, { renderMathInElement(document.body, {
delimiters: [ delimiters: [
{ left: "$$", right: "$$", display: true }, { left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false }, { left: "$", right: "$", display: false },
@ -8,4 +8,3 @@ document$.subscribe(({ body }) => {
], ],
}) })
}) })