Skip to content

Parse string prop as markdown #2274

Answered by remcohaszing
edward1127 asked this question in Q&A
Discussion options

You must be logged in to vote

MDX does not compile props. If you pass props as a string, you get them as a string. If you want to treat the content as markdown, you can use something like react-markdown.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@edward1127
Comment options

@edward1127
Comment options

@remcohaszing
Comment options

@edward1127
Comment options

Answer selected by edward1127
Comment options

You must be logged in to vote
4 replies
@wooorm
Comment options

@edward1127
Comment options

@donny-bras
Comment options

@wooorm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants