Merge pull request #137 from abelsiqueira/136-global-mathjax

Allow mathjax to be set globally
This commit is contained in:
Guru Sabarish
2023-11-06 15:41:51 +05:30
committed by GitHub
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@
{{ end }}
{{ if (.Params.mathjax | default false) }}
{{ if or (.Params.mathjax | default false) (.Site.Params.mathjax) }}
{{ "<!-- MathJax -->" | safeHTML }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.min.js" integrity="sha384-M5jmNxKC9EVnuqeMwRHvFuYUE8Hhp0TgBruj/GZRkYtiMrCRgH7yvv5KY+Owi7TW" crossorigin="anonymous"></script>