mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 22:49:44 +00:00
feat(mathjax): upgrade to 3.0.5 (#270)
This commit is contained in:
parent
4ad955c204
commit
7dfedd3440
1 changed files with 10 additions and 10 deletions
|
@ -75,20 +75,20 @@
|
||||||
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}
|
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.MathJax = {
|
window.MathJax = {
|
||||||
{{ if or .Params.mathjaxEnableSingleDollar (and .Site.Params.mathjaxEnableSingleDollar (ne .Params.mathjaxEnableSingleDollar false)) -}}
|
tex: {
|
||||||
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
|
{{ if or .Params.mathjaxEnableSingleDollar (and .Site.Params.mathjaxEnableSingleDollar (ne .Params.mathjaxEnableSingleDollar false)) -}}
|
||||||
{{ end -}}
|
inlineMath: [['$','$'], ['\\(','\\)']],
|
||||||
{{ if or .Params.mathjaxEnableAutoNumber (and .Site.Params.mathjaxEnableAutoNumber (ne .Params.mathjaxEnableAutoNumber false)) -}}
|
{{ end -}}
|
||||||
TeX: {equationNumbers: {autoNumber: "AMS"}},
|
{{ if or .Params.mathjaxEnableAutoNumber (and .Site.Params.mathjaxEnableAutoNumber (ne .Params.mathjaxEnableAutoNumber false)) -}}
|
||||||
{{ end -}}
|
tags: 'ams',
|
||||||
showProcessingMessages: false,
|
{{ end -}}
|
||||||
messageStyle: 'none'
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
{{ if .Site.Params.mathjaxUseLocalFiles -}}
|
{{ 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 -}}
|
{{- 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 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue