Html output of blog post body adds &nbsp; to <p>, can't remove it

Hi guys,

I’ve been stuck with this for way too long, so hopefully, someone else had the same issue and managed to solve it.

I’m building a Gatsby blog and querying the body content with GraphQL. The output - both Html and JSON formats - adds   to all paragraphs and headings. I’ve tried everything to remove it and it just doesn’t work.

As it is, it’s breaking the design. If I try to add word-break, overflow-wrap, or anything similar, the words are split randomly. Hyphens don’t work either.

Can anyone help?


This does not look like something that Contentful would return though, it could be an issue on the presentation layer. Have you already tried logging the Contentful responses to see where the empty characters are added exactly?