Open willin opened 2 years ago
such as an image block, it's wrapped with a div element... so that html generated is like:
div
<p> <div class="rc-image" style="width: 200px;"> <img class="rc-image-img" src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" /> </div> </p>
how to skip the p element generation when there is a div?
p
Hey @willin, in case you still need an answer for this, I think the remark-unwrap-images plugin might do what you're looking for.
such as an image block, it's wrapped with a
div
element... so that html generated is like:how to skip the
p
element generation when there is adiv
?