Skip to content

ReactMarkdown - Render root element as span in version 6.0.2 #741

Answered by wooorm
Jerimo17 asked this question in Q&A
Discussion options

You must be logged in to vote

Where is the div coming from?

Markdown is block: lists, block quotes, pre, p... You might be able to remove some through the built in filter functionality, or use rehype-sanitize which has more fine grained control.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Jerimo17
Comment options

@ChinPTeo
Comment options

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