Skip to content

How to serialize to markdown in react-markdown? #1438

Answered by ChristianMurphy
joetam asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome @joetam 👋

custom directive via remark-directive to add a google-doc style comment to the document

Nice! I'd recommend sticking with directives, they're more standard than most alternatives.

Ideally I would like this comment id to be inserted back into the markdown so I can use the document as the source of truth.

react-markdown is always markdown -> react component.
If you want markdown -> markdown, you would indeed want to use remark.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joetam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants