wpPost.content creates empty p-tags between paragraphs #2193
mayumih387
started this conversation in
GatsbyJS
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for the great plugin!
WP Gatsby 2.1.1
WP GraphQL 1.6.10
WordPress 5.8.2
As the subject, wpPost.content inserts empty
p
-tags between normal paragraphs for all posts;my react code is:
<div className="content" dangerouslySetInnerHTML={{__html:data.wpPost.content}} />
When a post is updated with code editor mode, those
<p></p>
s disappear from that post. But once a new build/develop runs, they appear again.Can this problem be solved just by my side or would it be a bug?
(those empty p-tags don't effect frontend view, but annoying...)
Beta Was this translation helpful? Give feedback.
All reactions