1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-06-08 00:27:58 +00:00

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 41741dc336
commit 51930b9bcf

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 */
['$$', '$$'], ['$$', '$$'],
['\\[', '\\]'] ['\\[', '\\]']
] ]