Support mathjax option in YAML metadata
This commit is contained in:
parent
d97e435b3b
commit
229740e478
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue