Closed mbarde closed 9 months ago
When converting a HTML table to slate block the first row is always interpreted as header row (option hideHeaders is always false). In my opinion this should only be the case if first tr contains th-elements.
hideHeaders
false
tr
th
Following HTML:
<table> <tbody> <tr> <td>Name:</td> <td>Rick</td> <tr> <tr> <td>Address:</td> <td>Main Street</td> <tr> </tbody> </table>
currently results in this:
(with hideHeaders: false)
hideHeaders: false
I think it should be:
(with hideHeaders: true)
hideHeaders: true
Fixed in @plone/blocks-conversion-tool 0.7.1
@plone/blocks-conversion-tool
What?
When converting a HTML table to slate block the first row is always interpreted as header row (option
hideHeaders
is alwaysfalse
). In my opinion this should only be the case if firsttr
containsth
-elements.Example
Following HTML:
currently results in this:
(with
hideHeaders: false
)I think it should be:
(with
hideHeaders: true
)