hello-algo/overrides/javascripts/katex.js

11 lines
305 B
JavaScript
Raw Normal View History

2023-07-17 18:54:07 +08:00
document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true },
],
});
});