hello-algo/zh-hant/javascripts/katex.js

11 lines
305 B
JavaScript
Raw Normal View History

2024-04-06 03:02:26 +08:00
document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true },
],
});
});