ex from '/dist/katex.mjs';

            const input = document.getElementById("input");
            const math = document.getElementById("math");

            input.addEventListener("input", reprocess, false);
            reprocess();

            function reprocess() {
                try {
                    katex.render(input.value, math, {displayMode: true, throwOnError: false, macros: {}});
                } catch (e) {
                    if (e.__proto__ === katex.ParseError.prototype) {
            