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, });