import("react-markdown").then(rm => { import("remark-math").then(math => { import("rehype-katex").then(katex => { import("react-dom/server").then(rds => { import("react").then(react => { const el = react.createElement(rm.default, { remarkPlugins: [math.default], rehypePlugins: [katex.default], children: "Testing math $$a=b$$ inline" }); console.log(rds.renderToString(el)); }); }); }); }); })