RIP21 / react-simplemde-editor

React wrapper for simplemde (easymde) markdown editor
https://react-simplemde-edtior.netlify.com/
MIT License
772 stars 103 forks source link

How to parse math formulas with katex? #169

Closed henrique-barreto closed 3 years ago

henrique-barreto commented 3 years ago

Hello,

how can I add a katex parser to the editor, just like Stackedit.js?

StackEdit renders mathematics from LaTeX expressions inside your markdown file.

Screenshot from 2021-07-29 19-55-29

btzr-io commented 3 years ago

You will probably need a custom markdown preview: https://github.com/RIP21/react-simplemde-editor#custom-preview-rendering-example

See: https://github.com/remarkjs/remark-react

btzr-io commented 3 years ago

https://github.com/remarkjs/remark-math

RIP21 commented 3 years ago

@btzr-io exactly. You're right :)