ontainer);
            }

            function render_main() {
                var escaped = g_md_src;
                // double escape for ajax
                for (let tag of mathJaxTags) {
                    escaped = escaped.replaceAll(tag, '\\' + tag);
                }
                render_markdown(escaped, ai_container);
                Prism.highlightAllUnder(ai_container);

                if (typeof MathJax !== 'undefined' && MathJax.typesetPromise) {
                    MathJax.typesetPromise(