Extending React Markdown with any component

Hi, I'm trying to implement charts into the markdown langauge. Currently, I'm using Mermaid for some basic charts but I want to implement my own.

For example:
pie title Pets adopted by volunteers
    "Dogs" : 386
    "Cats" : 85
    "Rats" : 15

This markdown code will render a pie chart using mermaid.

How can I implement something to render my own react components?

I know mermaid is open source and I could look into the code, but I want to first ask is someone knows an easier way.

Also, I will be could to implement any react component because some cool functionally will be unlock.
Was this page helpful?