MatejBransky / react-katex

Display math in TeX with KaTeX and ReactJS
https://codesandbox.io/s/github/MatejMazur/react-katex/tree/master/demo?fontsize=14&hidenavigation=1&module=%2Fsrc%2FExample.tsx&theme=dark
MIT License
148 stars 12 forks source link

Automatic parsing of of text with latex delimiters #21

Open FernandoChu opened 4 years ago

FernandoChu commented 4 years ago

One missing feature that I'd love that is not built in into the original react-katex or katex itself is parsing text. This is normally achieved in katex by using the auto-render plugin. The structure I am thinking off is having a prop (e.g. parse) that you can pass to activate it, as well as some config to define which delimiters to use. There would be another file on the source folder (e.g. parse.ts) and it would be dynamically imported if the parse prop is true.

MatejBransky commented 3 years ago

Hi I would like to help but I haven't used this feature with this lib. Could you use react-markdown with custom renderer? (docs)