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

Function katexHandle

static/editor.md/editormd.amd.js:4084–4090  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4082 if (settings.tex)
4083 {
4084 var katexHandle = function() {
4085 div.find("." + editormd.classNames.tex).each(function(){
4086 var tex = $(this);
4087 katex.render(tex.html().replace(/&lt;/g, "<").replace(/&gt;/g, ">"), tex[0]);
4088 tex.find(".katex").css("font-size", "1.6em");
4089 });
4090 };
4091
4092 if (settings.autoLoadKaTeX && !editormd.$katex && !editormd.kaTeXLoaded)
4093 {

Callers 1

editormd.amd.jsFile · 0.70

Calls 1

$Function · 0.50

Tested by

no test coverage detected