I’m investigating PM’s prosemirror-tables module and I have a couple of questions:
- what is the rationale of having a
tbody
element? Can I suppress it? - what is the rationale of having a
p
tag as child of atd
element?
I’m investigating PM’s prosemirror-tables module and I have a couple of questions:
tbody
element? Can I suppress it?p
tag as child of a td
element?Browsers automatically create <tbody>
elements for tables.
You can configure what content cells accept with the cellContent
option.
Thanks for your answer, I will look into cellContent
.
With respect to tbody
~ the fact that a browser creates it on render strictly speaking does not necessarily relate to the semantic content of the table IMO. I (now) understand why prosemirror-tables rolls with this invariant though.