Specification¶
Two-dimensional table data
- type: string, (“table”)
- See also Node
- align: string, optional, (“left” | “center” | “right”)
- No description for this property.
- children: array, (TableRow)
- See also Parent
- position: object, optional, (Position)
- See also Node
- data: object, optional
- See also Node
Example¶
Markup
AST
Render
| header 1 | header 2 |
|:---|---:|
| 3 | 4 |
type: root
children:
- type: table
children:
- type: tableRow
children:
- type: tableCell
header: true
align: left
children:
- type: text
value: header 1
- type: tableCell
header: true
align: right
children:
- type: text
value: header 2
- type: tableRow
children:
- type: tableCell
align: left
children:
- type: text
value: '3'
- type: tableCell
align: right
children:
- type: text
value: '4'
header 1 | header 2 |
---|---|
3 | 4 |