Add the summary of chapter divide and conquer

Enable instant loading feature
Fix the math rendering in mathjax.js
This commit is contained in:
krahets
2023-07-17 20:23:46 +08:00
parent 06b309d021
commit 34985bdf2b
4 changed files with 47 additions and 3 deletions

10
docs/javascripts/katex.js Normal file
View File

@ -0,0 +1,10 @@
document$.subscribe(({ body }) => {
renderMathInElement(body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true },
],
});
});