#Best Markdown tool w/ remix?
1 messages · Page 1 of 1 (latest)
Do you want to render Markdown on the client, or just in the server and send the rendered HTML?
Interested in MDX, or just Markdown?
I like markdown-it (https://www.npmjs.com/package/markdown-it), which is good if you want to render it on the server.
Use that in a loader, send the HTML to the client, and render it with dangerouslySetInnerHTML
If you want to render on the client too, then react-markdown is your best bet. https://github.com/remarkjs/react-markdown
That’s helpful I’ll look into both of these. Should be good either way just as long as it is rendered properly. Thanks Alex.
I recommend starting with the server-rendered. Better performance, smaller client bundle.
Okay I’ll shoot for that, thanks!
What do you thing about https://markdoc.dev/ ?
I've seen this article by @ruby marten https://sergiodxa.com/articles/parse-markdown-with-markdoc-in-remix where he explains how to use it. And mostly I see it' makes easy to add externalReact components, which I' need for my project:
- Is
markdown-itcapable of adding React components? - Which integrates 'best' with Remix?
- Do you recommend any markdown editor ? (I've tried Lexical and looks very powerful ... but difficult to configure...
Thx