File tree 3 files changed +22
-2
lines changed
3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 97
97
sd "/edit/main/docs/" "/edit/main/" {source}
98
98
sd "docs_dir: .*" "docs_dir: ." {source}
99
99
sd "assets/(\w+)" "docs/assets/\$1" {source}
100
+ - source : docs/assets/js/mathjax.js
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 . typesetPromise ( ) ;
16
+ } ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ extra_css:
45
45
- https://use.fontawesome.com/releases/v5.15.4/css/all.css
46
46
47
47
extra_javascript :
48
- - https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS-MML_HTMLorMML
48
+ - docs/assets/js/mathjax.js
49
+ - https://polyfill.io/v3/polyfill.min.js?features=es6
50
+ - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
49
51
50
52
plugins :
51
53
- awesome-pages
@@ -73,7 +75,8 @@ markdown_extensions:
73
75
- plantuml_markdown :
74
76
server : http://www.plantuml.com/plantuml
75
77
format : svg
76
- - pymdownx.arithmatex
78
+ - pymdownx.arithmatex :
79
+ generic : true
77
80
- pymdownx.details
78
81
- pymdownx.emoji :
79
82
emoji_index : !!python/name:materialx.emoji.twemoji
You can’t perform that action at this time.
0 commit comments