This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
Any reason why the root element has to be a <div>? #54
Labels
🙋 no/question
This does not need any changes
I'm refactoring some of our code to use this module, instead of
dangerouslySetInnerHtml
using marked. Marked appears to have a root element of a<p>
tag, this module has a<div>
that everything gets wrapped in.This is causing some issues in our tests because previously we were inserting markdown content inside of a
<p>
tag. A<p>
inside of a<p>
is a valid descendant. A<div>
inside of a<p>
results in this react error:Would you be open to accepting a pr which makes the root tag customisable?
The text was updated successfully, but these errors were encountered: