You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ryanehlers if you put raw MathML inside a react component, react will render it, however for MathJax to function properly we need to pass String to the underlying MathJax library.
I thought perhaps one could do something like this:
I'll close this as a wontfix since the component (and MathJax) needs a string for typesetting. Moreover, your workaround looks perfectly fine to me. There is also Algolia's react-element-to-jsx-string which might be interesting.
In React it's possible to return MathML from a jsx function like:
Is it possible to integrate this with the
<MathJax />
component?My current work-around is to convert the MathML to a string with
ReactDOMServer.renderToString()
:The text was updated successfully, but these errors were encountered: