Skip to content

Commit 0a4b84e

Browse files
committed
defer mathjax loading to support dynamic content
1 parent ee3902b commit 0a4b84e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

book.js

+2
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,6 @@ function loadChapter(project) {
224224
}
225225

226226
customTags();
227+
228+
MathJax.typeset();
227229
}

mathjax-config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
window.MathJax = {
2+
startup: {
3+
typeset: false
4+
},
25
tex: {
36
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
47
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],

0 commit comments

Comments
 (0)