plone / blocks-conversion-tool

A tool to convert HTML (as used in Plone Classic) to Blocks (as used on Volto)
7 stars 5 forks source link

fix: Wrap td contents in div instead of span #38

Closed davisagli closed 9 months ago

davisagli commented 9 months ago

This fixes a bug with extra newlines added between inline elements and text. That happened because the converter was previously producing elements with type: 'span', but volto-slate was rendering them as paragraphs. Wrapping the entire cell content in div seems to work better.