Kod:
document.querySelector("#katexAutoRender").addEventListener("load", event => {
    if (typeof renderMathInElement !== "function") {
        throw new Error("renderMathInElement is not a function");
    }
    if (typeof CMTV_MATH_RENDER_OPTIONS !== "object") {
        throw new Error("CMTV_MATH_RENDER_OPTIONS is not an object");
    }
 
    renderMathInElement(document.body, CMTV_MATH_RENDER_OPTIONS);
});
Kod:
XF.on(document, "xf:reinit", event => {
    if (typeof renderMathInElement !== "function") {
        throw new Error("renderMathInElement is not a function");
    }
    if (typeof CMTV_MATH_RENDER_OPTIONS !== "object") {
        throw new Error("CMTV_MATH_RENDER_OPTIONS is not an object");
    }
 
    renderMathInElement(document.body, CMTV_MATH_RENDER_OPTIONS);
});
Kod:
XF.on(document, "xf:page-load-complete", event => {
    if (typeof renderMathInElement !== "function") {
        throw new Error("renderMathInElement is not a function");
    }
    if (typeof CMTV_MATH_RENDER_OPTIONS !== "object") {
        throw new Error("CMTV_MATH_RENDER_OPTIONS is not an object");
    }
 
    renderMathInElement(document.body, CMTV_MATH_RENDER_OPTIONS);
});
Kod:
document.addEventListener("xf:page-load-complete", event => {
    if (typeof renderMathInElement !== "function") {
        throw new Error("renderMathInElement is not a function");
    }
    if (typeof CMTV_MATH_RENDER_OPTIONS !== "object") {
        throw new Error("CMTV_MATH_RENDER_OPTIONS is not an object");
    }
 
    renderMathInElement(document.body, CMTV_MATH_RENDER_OPTIONS);
});

Kod:
document.addEventListener("xf:page-load-start", event => {
    XF.on(document, "xf:reinit", event => {
        if (typeof renderMathInElement !== "function") {
            throw new Error("renderMathInElement is not a function");
        }
        if (typeof CMTV_MATH_RENDER_OPTIONS !== "object") {
            throw new Error("CMTV_MATH_RENDER_OPTIONS is not an object");
        }
 
        renderMathInElement(document.body, CMTV_MATH_RENDER_OPTIONS);
    });
});
 
Son düzenleme:
abcdefg12345678