progital / gatsby-wpgraphql-inline-images

Solution for Gatsby and WPGraphQL sourced content. Downloads images locally.
MIT License
35 stars 12 forks source link

Whitespace text nodes cannot appear as a child of <table> #33

Closed robmarshall closed 4 years ago

robmarshall commented 4 years ago

When rendering a table using the parser, the console returns the following error: Whitespace text nodes cannot appear as a child of <table>. Make sure you don't have any extra whitespace between tags on each line of your source code..

This does not appear when using a standard dangerouslySetInnerHTML implementation.

This package came across the issue and seemed to fix it: https://github.com/aknuds1/html-to-react/issues/79

Also seems to be the most up-to-date.