|
|
|
@ -4022,6 +4022,9 @@
|
|
|
|
|
var katexHandle = function() {
|
|
|
|
|
div.find("." + editormd.classNames.tex).each(function(){
|
|
|
|
|
var tex = $(this);
|
|
|
|
|
// 和线上的不一样?
|
|
|
|
|
// http://editor.md.ipandao.com/examples/html-preview-markdown-to-html-custom-toc-container.html#Editor.md
|
|
|
|
|
// katex.render(tex.html().replace(/</g, "<").replace(/>/g, ">"), tex[0]);
|
|
|
|
|
katex.render(tex.text(), tex[0]);
|
|
|
|
|
tex.find(".katex").css("font-size", "1.0em");
|
|
|
|
|
});
|
|
|
|
|