forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Kramdown's math mode
$$ ... $$.
- Loading branch information
1 parent
3927a45
commit eaafdc9
Showing
2 changed files
with
37 additions
and
0 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| <script type="text/x-mathjax-config"> | ||
| MathJax.Hub.Config({ | ||
| extensions: [ | ||
| "MathMenu.js", | ||
| "MathZoom.js", | ||
| "AssistiveMML.js", | ||
| "a11y/accessibility-menu.js" | ||
| ], | ||
| jax: ["input/TeX", "output/CommonHTML"], | ||
| TeX: { | ||
| extensions: [ | ||
| "AMSmath.js", | ||
| "AMSsymbols.js", | ||
| "noErrors.js", | ||
| "noUndefined.js", | ||
| ] | ||
| } | ||
| }); | ||
| MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { | ||
| var TEX = MathJax.InputJax.TeX; | ||
| var COLS = function (W) { | ||
| var WW = []; | ||
| for (var i = 0, m = W.length; i < m; i++) | ||
| {WW[i] = TEX.Parse.prototype.Em(W[i])} | ||
| return WW.join(" "); | ||
| }; | ||
| TEX.Definitions.Add({ | ||
| environment: { | ||
| psmallmatrix: ['Array',null,'(',')','c',COLS([1/3]),".2em",'S',1], | ||
| } | ||
| }); | ||
| }); | ||
| </script> | ||
| <script type="text/javascript" async | ||
| src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js"> | ||
| </script> |
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