Skip to content

Commit

Permalink
fix render formula
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Dec 20, 2023
1 parent d9e5117 commit 77ae962
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/javascripts/katex.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,15 @@ document$.subscribe(({ body }) => {
],
})
})

app.location$.subscribe(function() {
// instant loading finished
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true }
],
})
})

0 comments on commit 77ae962

Please sign in to comment.