aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/layouts/partials/math.html
blob: b1eb5c8db68b0c721c15b1cea528d6fd45461724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<script>
  MathJax = {
    tex: {
      inlineMath: [['$', '$'], ['\\(', '\\)']],    // inline
      displayMath: [['$$', '$$'], ['\\[', '\\]']]  // block
    },
    startup: {
      pageReady: () => {
        return MathJax.startup.defaultPageReady().then(() => {
          document.body.classList.remove("dn");
        });
      }
    }
  };
</script>