From 229740e478fc808a6e4fdece62c5158ead5f66e4 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Sun, 21 Feb 2016 11:36:44 +0800 Subject: Support mathjax option in YAML metadata --- public/js/extra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/js/extra.js') 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 '' + match[0] + ''; else return match.input.slice(0, match[0].length); -- cgit v1.2.3