diff options
author | Cheng-Han, Wu | 2016-02-21 11:36:44 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-02-21 11:36:44 +0800 |
commit | 229740e478fc808a6e4fdece62c5158ead5f66e4 (patch) | |
tree | 098e274b7c4c0c9922fc264a0e9d706737670e73 /public | |
parent | d97e435b3b18d3eef2120d4038445d8c7586734c (diff) |
Support mathjax option in YAML metadata
Diffstat (limited to 'public')
-rw-r--r-- | public/js/extra.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index 676c41cc..37af0692 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -775,7 +775,7 @@ var mathjaxPlugin = new Plugin( // this function will be called when something matches function (match, utils) { - if (match.index == 0) + if (match.index == 0 && (md.meta.mathjax || typeof md.meta.mathjax == "undefined")) return '<span class="mathjax raw">' + match[0] + '</span>'; else return match.input.slice(0, match[0].length); |