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
|
||||
var mathjaxdivs = view.find('.mathjax.raw').removeClass("raw").toArray();
|
||||
try {
|
||||
for (var i = 0; i < mathjaxdivs.length; i++) {
|
||||
MathJax.Hub.Queue(["Typeset", MathJax.Hub, mathjaxdivs[i].innerHTML]);
|
||||
MathJax.Hub.Queue(viewAjaxCallback);
|
||||
}
|
||||
MathJax.Hub.Queue(["Typeset", MathJax.Hub, mathjaxdivs]);
|
||||
MathJax.Hub.Queue(viewAjaxCallback);
|
||||
} catch (err) {}
|
||||
//sequence diagram
|
||||
var sequences = view.find(".sequence-diagram.raw").removeClass("raw");
|
||||
|
|
Loading…
Reference in a new issue