11< script type ="application/javascript " src ="{{ "js /github-style.js" | absURL }}"> </ script >
22{{ if or .Params.math .Site.Params.math }}
3- < link rel ="stylesheet " href ="https://cdn .jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css "
3+ < link rel ="stylesheet " href ="https://fastly .jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css "
44 integrity ="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq " crossorigin ="anonymous ">
5- < script defer type ="application/javascript " src ="{{ "fa /js/all.min.js" | absURL }}"> </ script >
6- < script defer src ="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js "
5+ < script defer src ="https://fastly.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js "
76 integrity ="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz " crossorigin ="anonymous "> </ script >
8- < script defer src ="https://cdn .jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js "
7+ < script defer src ="https://fastly .jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js "
98 integrity ="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI " crossorigin ="anonymous "
109 onload ="renderMathInElement(document.body); "> </ script >
1110{{ end }}
11+
12+ {{ if or .Params.MathJax .Site.Params.MathJax}}
13+ < script type ="text/javascript " async
14+ src ="https://cdn.bootcss.com/mathjax/2.7.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML ">
15+ MathJax . Hub . Config ( {
16+ tex2jax : {
17+ inlineMath : [ [ '$' , '$' ] , [ '\\(' , '\\)' ] ] ,
18+ displayMath : [ [ '$$' , '$$' ] , [ '\[\[' , '\]\]' ] ] ,
19+ processEscapes : true ,
20+ processEnvironments : true ,
21+ skipTags : [ 'script' , 'noscript' , 'style' , 'textarea' , 'pre' ] ,
22+ TeX : {
23+ equationNumbers : { autoNumber : "AMS" } ,
24+ extensions : [ "AMSmath.js" , "AMSsymbols.js" ]
25+ }
26+ }
27+ } ) ;
28+
29+ MathJax . Hub . Queue ( function ( ) {
30+ // Fix <code> tags after MathJax finishes running. This is a
31+ // hack to overcome a shortcoming of Markdown. Discussion at
32+ // https://github.com/mojombo/jekyll/issues/199
33+ var all = MathJax . Hub . getAllJax ( ) , i ;
34+ for ( i = 0 ; i < all . length ; i += 1 ) {
35+ all [ i ] . SourceElement ( ) . parentNode . className += ' has-jax' ;
36+ }
37+ } ) ;
38+ </ script >
39+
40+ < style >
41+ code .has-jax {
42+ font : inherit;
43+ font-size : 100% ;
44+ background : inherit;
45+ border : inherit;
46+ color : # 515151 ;
47+ }
48+ </ style >
49+ {{end}}
0 commit comments