aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/mathjax.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 00:49:31 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 00:49:31 +0300
commit169837de5f9649ea41107030c148cd7f31615fb7 (patch)
tree42b22c79917e6ae5ef738ca452c7ff44eef3e6d0 /_includes/common/mathjax.html
parentREADME: remove the obsolete Windows notes (diff)
downloadblog-169837de5f9649ea41107030c148cd7f31615fb7.tar.gz
blog-169837de5f9649ea41107030c148cd7f31615fb7.zip
add MathJax support
Diffstat (limited to '_includes/common/mathjax.html')
-rw-r--r--_includes/common/mathjax.html12
1 files changed, 12 insertions, 0 deletions
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 %}