Mathpix / mathpix-markdown-it

Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community
MIT License
542 stars 45 forks source link

Question on dangerouslySetInnerHTML #324

Closed genaiedtech closed 7 months ago

genaiedtech commented 7 months ago

I am by no means a React expert. I have heard there are security issues with using dangerouslySetInnerHTML in React. Most of the examples using mathpix-markdown-it seem to be using this method. Is it possible to use Mathpix-markdown-it without using the dangerouslysetinnerhtml ? If so, can you please point to an example.