From 8566f5233bd471251b2f43fd1fa2f11d88ba578f Mon Sep 17 00:00:00 2001 From: Ben Weisz Date: Mon, 4 Mar 2024 23:36:23 -0800 Subject: [PATCH] Fix double rendering of mathml and html --- packages/react-katex/src/index.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-katex/src/index.jsx b/packages/react-katex/src/index.jsx index 0a207a4..46ee15d 100644 --- a/packages/react-katex/src/index.jsx +++ b/packages/react-katex/src/index.jsx @@ -41,6 +41,7 @@ const createMathComponent = (Component, { displayMode }) => { const html = KaTeX.renderToString(formula, { displayMode, errorColor, + output: "mathml", throwOnError: !!renderError, });