Home

Table Cell

This is a type used in Stencila Schema for cells within a Table.

It exists to represent table structure explicitly, including header and data semantics, alignment, spanning, and cell content, rather than flattening tables into plain text.

Key properties include the cell content, cellType, alignment properties, and row or column span metadata.

Analogues

The following external types, elements, or nodes are similar to a TableCell:

  • HTML <td>: Closest HTML analogue for data cells; header-cell semantics are selected in Stencila via cellType rather than a separate node type.

  • HTML <th>: Close HTML analogue for header cells; Stencila uses one node plus cellType to cover both <td> and <th> roles.

  • JATS <td>: Closest JATS analogue for generic table body cells.

Properties

The TableCell type has these properties:

NameDescriptionTypeInherited from
cellTypeThe type of cell.TableCellType-
nameThe name of the cell.String-
columnSpanHow many columns the cell extends.Integer-
rowSpanHow many columns the cell extends.Integer-
horizontalAlignmentThe horizontal alignment of the content of a table cell.HorizontalAlignment-
horizontalAlignmentCharacterThe character to be used in horizontal alignment of the content of a table cell.String-
verticalAlignmentThe vertical alignment of the content of a table cell.VerticalAlignment-
contentContents of the table cell.Block*-
idThe identifier for this item.StringEntity

Related

The TableCell type is related to these types:

Bindings

The TableCell type is represented in:

Testing

During property-based (a.k.a generative) testing, the properties of the TableCell type are generated using the following strategies.

PropertyComplexityDescriptionStrategy
contentMin+Generate a single, arbitrary, paragraphtable_cell_content(1)

This documentation was generated from TableCell.yaml by docs_types.rs.

© 2026 Stencila