mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-27 09:36:29 +08:00
34985bdf2b
Enable instant loading feature Fix the math rendering in mathjax.js
10 lines
305 B
JavaScript
10 lines
305 B
JavaScript
document$.subscribe(({ body }) => {
|
|
renderMathInElement(body, {
|
|
delimiters: [
|
|
{ left: "$$", right: "$$", display: true },
|
|
{ left: "$", right: "$", display: false },
|
|
{ left: "\\(", right: "\\)", display: false },
|
|
{ left: "\\[", right: "\\]", display: true },
|
|
],
|
|
});
|
|
});
|