aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_includes/common/header.html1
-rw-r--r--_includes/common/mathjax.html12
2 files changed, 13 insertions, 0 deletions
diff --git a/_includes/common/header.html b/_includes/common/header.html
index c21b442..a17ea71 100644
--- a/_includes/common/header.html
+++ b/_includes/common/header.html
@@ -19,6 +19,7 @@
{% endif %}
{% include common/ie_compat.html %}
+ {% include common/mathjax.html %}
</head>
<body>
<div class="top-level-footer-wrapper">
diff --git a/_includes/common/mathjax.html b/_includes/common/mathjax.html
new file mode 100644
index 0000000..1d59f37
--- /dev/null
+++ b/_includes/common/mathjax.html
@@ -0,0 +1,12 @@
+{% if page.mathjax %}
+ <script>
+// See the README for explanation:
+MathJax = {
+ tex: {
+ inlineMath: [['$', '$']]
+ }
+};
+ </script>
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+ <script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
+{% endif %}