MatejBransky/react-katex

Inline Latex parsing

nitin-deligence opened this issue · 1 comments

Is there any way to parse latex inside a text paragraph through component.

ex: "Solve this: $$c = 2\sqrt{3}$$"

I can do this through katex but don't find any way to achieve this using component, I don't know where and how many times Latex will be added in a paragraph so I'm wondering how to get this using component.

Maybe you're looking for a markdown parser so that you can say which part of the paragraph is the latex.
for example, remark with remark-math plugin gives you a syntax tree which contains $-chunks(in your case, c=2\sqrt{3}), and you want to render them using this package.