mirror of https://github.com/status-im/codimd.git
Fixed mathjax parser might not render properly
This commit is contained in:
parent
9eb23603f4
commit
2ad54c516a
|
@ -640,8 +640,10 @@ var mathjaxPlugin = new Plugin(
|
|||
|
||||
// this function will be called when something matches
|
||||
function (match, utils) {
|
||||
//var code = $(match).text();
|
||||
return '<span class="mathjax raw">' + match[0] + '</span>';
|
||||
if (match.index == 0)
|
||||
return '<span class="mathjax raw">' + match[0] + '</span>';
|
||||
else
|
||||
return match.input.slice(0, match[0].length);
|
||||
}
|
||||
);
|
||||
//TOC
|
||||
|
|
Loading…
Reference in New Issue