mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
Fixed mathjax might parse not specified elements and now pass array of elements
This commit is contained in:
parent
1da0b87714
commit
daf4c9dcae
1 changed files with 2 additions and 4 deletions
|
@ -208,10 +208,8 @@ function finishView(view) {
|
||||||
//mathjax
|
//mathjax
|
||||||
var mathjaxdivs = view.find('.mathjax.raw').removeClass("raw").toArray();
|
var mathjaxdivs = view.find('.mathjax.raw').removeClass("raw").toArray();
|
||||||
try {
|
try {
|
||||||
for (var i = 0; i < mathjaxdivs.length; i++) {
|
MathJax.Hub.Queue(["Typeset", MathJax.Hub, mathjaxdivs]);
|
||||||
MathJax.Hub.Queue(["Typeset", MathJax.Hub, mathjaxdivs[i].innerHTML]);
|
|
||||||
MathJax.Hub.Queue(viewAjaxCallback);
|
MathJax.Hub.Queue(viewAjaxCallback);
|
||||||
}
|
|
||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
//sequence diagram
|
//sequence diagram
|
||||||
var sequences = view.find(".sequence-diagram.raw").removeClass("raw");
|
var sequences = view.find(".sequence-diagram.raw").removeClass("raw");
|
||||||
|
|
Loading…
Reference in a new issue