mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 22:24:28 +00:00
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
|
// this function will be called when something matches
|
||||||
function (match, utils) {
|
function (match, utils) {
|
||||||
//var code = $(match).text();
|
if (match.index == 0)
|
||||||
return '<span class="mathjax raw">' + match[0] + '</span>';
|
return '<span class="mathjax raw">' + match[0] + '</span>';
|
||||||
|
else
|
||||||
|
return match.input.slice(0, match[0].length);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
//TOC
|
//TOC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user