diff --git a/assets/js/mathjax-config.js b/assets/js/mathjax-config.js
new file mode 100644
index 00000000..5a0772a6
--- /dev/null
+++ b/assets/js/mathjax-config.js
@@ -0,0 +1,6 @@
+window.MathJax = {
+ CommonHTML: { linebreaks: { automatic: true } },
+ tex2jax: { inlineMath: [ ['$', '$'], ['\\(','\\)'] ], displayMath: [ ['$$','$$'], ['\\[', '\\]'] ], processEscapes: false },
+ TeX: { noUndefined: { attributes: { mathcolor: 'red', mathbackground: '#FFEEEE', mathsize: '90%' } } },
+ messageStyle: 'none'
+};
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 13743437..e7cdecfc 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -2,14 +2,9 @@
{{/* Config LaTeX math rendering. */}}
{{ if or .Params.math .Site.Params.math }}
-
+ {{ $mathjax_config := resources.Get "js/mathjax-config.js" }}
+ {{ $secureJS := $mathjax_config | resources.Fingerprint "sha512" }}
+
{{ end }}
{{/* Attempt to load local vendor JS, otherwise load from CDN. */}}