diff options
author | panda-z <panda.hust@gmail.com> | 2020-09-11 00:04:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 00:04:59 +0800 |
commit | 7dfedd34404ad18fab9027bf04bab9a0b72f5ffd (patch) | |
tree | d6effe0a4bc1e23c57a7ee1d80361ffffa90a3eb /layouts | |
parent | 4ad955c204ed26cf16c82fbad63dbb335550daf0 (diff) |
feat(mathjax): upgrade to 3.0.5 (#270)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/scripts.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 898bbc4..71fe659 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -75,20 +75,20 @@ {{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }} <script type="text/javascript"> window.MathJax = { - {{ if or .Params.mathjaxEnableSingleDollar (and .Site.Params.mathjaxEnableSingleDollar (ne .Params.mathjaxEnableSingleDollar false)) -}} - tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}, - {{ end -}} - {{ if or .Params.mathjaxEnableAutoNumber (and .Site.Params.mathjaxEnableAutoNumber (ne .Params.mathjaxEnableAutoNumber false)) -}} - TeX: {equationNumbers: {autoNumber: "AMS"}}, - {{ end -}} - showProcessingMessages: false, - messageStyle: 'none' + tex: { + {{ if or .Params.mathjaxEnableSingleDollar (and .Site.Params.mathjaxEnableSingleDollar (ne .Params.mathjaxEnableSingleDollar false)) -}} + inlineMath: [['$','$'], ['\\(','\\)']], + {{ end -}} + {{ if or .Params.mathjaxEnableAutoNumber (and .Site.Params.mathjaxEnableAutoNumber (ne .Params.mathjaxEnableAutoNumber false)) -}} + tags: 'ams', + {{ end -}} + } }; </script> {{ if .Site.Params.mathjaxUseLocalFiles -}} - <script type="text/javascript" async src="{{ "lib/mathjax/MathJax.js?config=TeX-MML-AM_CHTML" | relURL }}"></script> + <script type="text/javascript" async src="{{ "lib/mathjax/es5/tex-mml-chtml.js" | relURL }}"></script> {{- else -}} - <script async src="https://cdn.jsdelivr.net/npm/mathjax@2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script> + <script async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.5/es5/tex-mml-chtml.js" integrity="sha256-HGLuEfFcsUJGhvB8cQ8nr0gai9EucOOaIxFw7qxmd+w=" crossorigin="anonymous"></script> {{- end }} {{- end }} |