claus / storyblok-rich-text-react-renderer

A React renderer for Storyblok rich text content
MIT License
86 stars 16 forks source link

fix: Fix for empty content in order to make some space from RichText #22 #23

Closed jpkha closed 1 year ago

jpkha commented 2 years ago

Related issue: #22

claus commented 1 year ago

You can use a NODE_PARAGRAPH resolver and simply return null if the only child is an empty text node.

Closing this because this would be a breaking change (people might rely on the fact that empty paragraphs are returned)