mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 17:24:34 -05:00
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
|
// this function will be called when something matches
|
||||||
function (match, utils) {
|
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>';
|
return '<span class="mathjax raw">' + match[0] + '</span>';
|
||||||
else
|
else
|
||||||
return match.input.slice(0, match[0].length);
|
return match.input.slice(0, match[0].length);
|
||||||
|
|
Loading…
Reference in a new issue