File tree Expand file tree Collapse file tree 2 files changed +14
-19
lines changed
Expand file tree Collapse file tree 2 files changed +14
-19
lines changed Original file line number Diff line number Diff line change 1- window . MathJax = {
2- tex : {
3- inlineMath : [ [ "\\(" , "\\)" ] ] ,
4- displayMath : [ [ "\\[" , "\\]" ] ] ,
5- processEscapes : true ,
6- processEnvironments : true
7- } ,
8- options : {
9- ignoreHtmlClass : ".*|" ,
10- processHtmlClass : "arithmatex"
11- }
12- } ;
13-
14- document$ . subscribe ( ( ) => {
15- MathJax . startup . output . clearCache ( )
16- MathJax . typesetClear ( )
17- MathJax . texReset ( )
18- MathJax . typesetPromise ( )
1+ document$ . subscribe ( ( { body } ) => {
2+ renderMathInElement ( body , {
3+ delimiters : [
4+ { left : "$$" , right : "$$" , display : true } ,
5+ { left : "$" , right : "$" , display : false } ,
6+ { left : "\\(" , right : "\\)" , display : false } ,
7+ { left : "\\[" , right : "\\]" , display : true }
8+ ] ,
9+ } )
1910} )
Original file line number Diff line number Diff line change @@ -70,4 +70,8 @@ markdown_extensions:
7070 generic : true
7171extra_javascript :
7272 - assets/js/extra.js
73- - assets/js/katex.js
73+ - assets/js/katex.js
74+ - https://unpkg.com/katex@0/dist/katex.min.js
75+ - https://unpkg.com/katex@0/dist/contrib/auto-render.min.js
76+ extra_css :
77+ - https://unpkg.com/katex@0/dist/katex.min.css
You can’t perform that action at this time.
0 commit comments