Mathpix / mathpix-markdown-it

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

Question on dangerouslySetInnerHTML #324

Closed genaiedtech closed 5 months ago

genaiedtech commented 5 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.