注释 效果是一样的

dev_forum
hjm 5 years ago
parent 03423d8c30
commit 73fc0f3b52

@ -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(/&lt;/g, "<").replace(/&gt;/g, ">"), tex[0]);
katex.render(tex.text(), tex[0]);
tex.find(".katex").css("font-size", "1.0em");
});

Loading…
Cancel
Save