diff options
author | Cheng-Han, Wu | 2016-03-04 23:20:55 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-03-04 23:20:55 +0800 |
commit | c43f9784b4e0ed7299a215f0e3f1e4fce296780f (patch) | |
tree | fd59858218e29a0a30579cb33ab8939a58d112ec /public | |
parent | 109d9881d985eb2abf94849d55b3a39e5766c6f2 (diff) |
Support YAML meta disable mathjax
Diffstat (limited to '')
-rw-r--r-- | public/vendor/markdown-it-mathjax.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/public/vendor/markdown-it-mathjax.js b/public/vendor/markdown-it-mathjax.js index 01c6fa43..299e483b 100644 --- a/public/vendor/markdown-it-mathjax.js +++ b/public/vendor/markdown-it-mathjax.js @@ -8,6 +8,9 @@ } })(this, function() { function math(state, silent) { + if (state.md.meta.mathjax === false) { + return false + } var startMathPos = state.pos if (state.src.charCodeAt(startMathPos) !== 0x5C /* \ */) { return false @@ -47,6 +50,9 @@ } function texMath(state, silent) { + if (state.md.meta.mathjax === false) { + return false + } var startMathPos = state.pos if (state.src.charCodeAt(startMathPos) !== 0x24 /* $ */) { return false |