forked from cotes2020/jekyll-theme-chirpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deps): move
MathJax
configuration to a separate file (cotes202…
…0#1670) Move `MathJax` configuration to file `assets/js/data/mathjax.js` will help add extensions.
- Loading branch information
Showing
2 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
layout: compress | ||
# WARNING: Don't use '//' to comment out code, use '{% comment %}' and '{% endcomment %}' instead. | ||
--- | ||
|
||
{%- comment -%} | ||
See: <https://docs.mathjax.org/en/latest/options/input/tex.html#tex-options> | ||
{%- endcomment -%} | ||
|
||
MathJax = { | ||
tex: { | ||
{%- comment -%} start/end delimiter pairs for in-line math {%- endcomment -%} | ||
inlineMath: [ | ||
['$', '$'], | ||
['\\(', '\\)'] | ||
], | ||
{%- comment -%} start/end delimiter pairs for display math {%- endcomment -%} | ||
displayMath: [ | ||
['$$', '$$'], | ||
['\\[', '\\]'] | ||
], | ||
{%- comment -%} equation numbering {%- endcomment -%} | ||
tags: 'ams' | ||
} | ||
}; |