mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 09:46:27 +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 },
|
|
],
|
|
});
|
|
});
|