()
| 4102 | if (settings.tex) |
| 4103 | { |
| 4104 | var katexHandle = function() { |
| 4105 | div.find("." + editormd.classNames.tex).each(function(){ |
| 4106 | var tex = $(this); |
| 4107 | katex.render(tex.html().replace(/</g, "<").replace(/>/g, ">"), tex[0]); |
| 4108 | tex.find(".katex").css("font-size", "1.6em"); |
| 4109 | }); |
| 4110 | }; |
| 4111 | |
| 4112 | if (settings.autoLoadKaTeX && !editormd.$katex && !editormd.kaTeXLoaded) |
| 4113 | { |