Fix the MathJax config was lost in jekyll-compress-html

This commit is contained in:
Cotes Chung 2021-04-02 21:14:43 +08:00
parent dbe4c3d42f
commit bff97df3b5

View file

@ -24,14 +24,14 @@
{% if page.math %} {% if page.math %}
<!-- MathJax --> <!-- MathJax -->
<script> <script>
// see: <https://docs.mathjax.org/en/latest/options/input/tex.html#tex-options> /* see: <https://docs.mathjax.org/en/latest/options/input/tex.html#tex-options> */
MathJax = { MathJax = {
tex: { tex: {
inlineMath: [ // start/end delimiter pairs for in-line math inlineMath: [ /* start/end delimiter pairs for in-line math */
['$','$'], ['$','$'],
['\\(','\\)'] ['\\(','\\)']
], ],
displayMath: [ // start/end delimiter pairs for display math displayMath: [ /* start/end delimiter pairs for display math */
['$$', '$$'], ['$$', '$$'],
['\\[', '\\]'] ['\\[', '\\]']
] ]