File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
2727
2828const (
2929 highlightJS = "https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11/build"
30- mathJax = "https://cdn.jsdelivr.net/npm/mathjax@3/es5 /tex-mml-chtml.js"
30+ mathJax = "https://cdn.jsdelivr.net/npm/mathjax@4 /tex-mml-chtml.js"
3131 mermaid = "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs"
3232)
3333
@@ -158,8 +158,7 @@ func convert(r io.Reader, w io.Writer) (err error) {
158158 }
159159 // MathJax
160160 if * m {
161- fmt .Fprintln (w , `<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>` )
162- fmt .Fprintf (w , "<script id=\" MathJax-script\" async src=\" %s\" ></script>\n " , mathJax )
161+ fmt .Fprintf (w , "<script defer src=\" %s\" ></script>\n " , mathJax )
163162 }
164163 // Mermaid
165164 if * diag {
Original file line number Diff line number Diff line change 66< link rel ="stylesheet " href ="${highlight.js}/styles/github.min.css ">
77< script src ="${highlight.js}/highlight.min.js "> </ script >
88< script > hljs . highlightAll ( ) ; </ script >
9- < script src ="https://polyfill.io/v3/polyfill.min.js?features=es6 "> </ script >
10- < script id ="MathJax-script " async src ="${MathJax} "> </ script >
9+ < script defer src ="${MathJax} "> </ script >
1110</ head >
1211< body >
1312< article class ="markdown ">
You can’t perform that action at this time.
0 commit comments