Markdown to React at compile time?


#1

Basically I am searching for something like @sashko’s package for Blaze but in React:


#2

Any reason not to compile to HTML and then just use dangerouslySetInnerHTML?


#3

No. How to do that at compile time?


#4

I’m saying you could modify my package to output HTML strings that you can import in your React code. That’s the most I can help with now.


#5

OK. Thank you.

As a dirty “workaround” I am compiling it at runtime with the react-markdown package.