Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 770 Bytes
<!-- https://github.com/mathjax/MathJax/issues/1988#issuecomment-384978927
Use plain Javascript to prevent the use of window.eval(). Then
'unsafe-eval' won't be needed to be added to script-src CSP.
Also move the mathjax config to a separate file from the inline script so
that 'unsafe-inline can also be removed from script-src CSP.
-->
<script src="{{ "js/mathjax-config.js" | absURL }}"></script>
<!-- https://gohugo.io/content-management/formats/#mathjax-with-hugo -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS_HTML"></script>
<!-- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML"></script> -->