summaryrefslogtreecommitdiff
path: root/_includes/scripts/mathjax.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/scripts/mathjax.html')
-rw-r--r--_includes/scripts/mathjax.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/_includes/scripts/mathjax.html b/_includes/scripts/mathjax.html
new file mode 100644
index 0000000..53db9e0
--- /dev/null
+++ b/_includes/scripts/mathjax.html
@@ -0,0 +1,12 @@
+{% if site.enable_math %}
+<!-- MathJax -->
+<script type="text/javascript">
+ window.MathJax = {
+ tex: {
+ tags: 'ams'
+ }
+ };
+</script>
+<script defer type="text/javascript" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@{{ site.mathjax.version }}/es5/tex-mml-chtml.js"></script>
+<script defer src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+{% endif %}