MCPcopy Index your code
hub / github.com/TruthHun/BookStack / katexHandle

Function katexHandle

static/editor.md/editormd.js:4104–4110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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(/&lt;/g, "<").replace(/&gt;/g, ">"), tex[0]);
4108 tex.find(".katex").css("font-size", "1.6em");
4109 });
4110 };
4111
4112 if (settings.autoLoadKaTeX && !editormd.$katex && !editormd.kaTeXLoaded)
4113 {

Callers 1

editormd.jsFile · 0.70

Calls 1

$Function · 0.50

Tested by

no test coverage detected