HarryChen0506/react-markdown-editor-lite

[Feature request] option to render React node instead of HTML

Closed this issue · 2 comments

I'd like to render the preview using better-react-mathjax, which uses a component MathJax (the nice thing about this approach is that it takes care of the styles). Thus it would be good to have the option of rendering a React node instead of HTML in renderHTML.

Turns out wrapping the whole editor component in <MathJax>...</MathJax> was all I needed (the editor text doesn't render)