Browse Source

fix bugs(mathjax)

mathjax-version
Pandao 10 years ago
parent
commit
e025903a9d
  1. 5
      dist/js/editormd.js
  2. 2
      dist/js/editormd.min.js
  3. 5
      src/js/editormd.js

5
dist/js/editormd.js

@ -892,7 +892,6 @@
codeEditor.on("change", function(cm, changeObj) {
console.log('change =>', codeEditor);
if (!settings.watch) {
return ;
}
@ -922,7 +921,8 @@
$(this).html($(jaxScript));
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "mathjax-code"]);
//MathJax.Hub.Queue(["Typeset", MathJax.Hub, "mathjax-code"]);
MathJax.Hub.Queue(["Typeset", MathJax.Hub, $(this)[0]]);
});
});
}
@ -1565,6 +1565,7 @@
callback();
};
// 注:国内可以采用这个CDN,http://cdn.bootcss.com/mathjax/2.4.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML
editormd.mathjaxURL = "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
/**

2
dist/js/editormd.min.js

File diff suppressed because one or more lines are too long

5
src/js/editormd.js

@ -881,7 +881,6 @@
codeEditor.on("change", function(cm, changeObj) {
console.log('change =>', codeEditor);
if (!settings.watch) {
return ;
}
@ -911,7 +910,8 @@
$(this).html($(jaxScript));
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "mathjax-code"]);
//MathJax.Hub.Queue(["Typeset", MathJax.Hub, "mathjax-code"]);
MathJax.Hub.Queue(["Typeset", MathJax.Hub, $(this)[0]]);
});
});
}
@ -1554,6 +1554,7 @@
callback();
};
// 注:国内可以采用这个CDN,http://cdn.bootcss.com/mathjax/2.4.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML
editormd.mathjaxURL = "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
/**

Loading…
Cancel
Save