Closed judemanutd closed 5 years ago
Hi, you can set all KaTeX options directly. It's in the documentation.
Why do you need katex.__parse
?
@MatejBransky so I had a requirement where I am using draftjs and the user is allowed to type in rich text along with tex and I was rendering this on the fly by parsing through the text using regex and using renderToString()
on the tex parts in order to get html which would then automatically be rendered by the browser.
Then I think that you don't need this library for this purpose. You can use the KaTeX API directly. Look into the my code if you don't know how to use KaTeX with React. ;)
I am currently using the talyssonoc/react-katex and wanted to know if this library had helper functions such as
katex.__parse(value);
katex.renderToString(value, { displayMode: false, })
I could not find any documentation for the same and wanted to know if it is possible,