mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
33 lines
380 B
XML
33 lines
380 B
XML
--- basic-table html ---
|
|
#table(
|
|
columns: 3,
|
|
rows: 3,
|
|
|
|
table.header(
|
|
[The],
|
|
[first],
|
|
[and],
|
|
[the],
|
|
[second],
|
|
[row],
|
|
table.hline(stroke: red)
|
|
),
|
|
|
|
table.cell(x: 1, rowspan: 2)[Baz],
|
|
[Foo],
|
|
[Bar],
|
|
|
|
[1],
|
|
// Baz spans into the next cell
|
|
[2],
|
|
|
|
table.cell(colspan: 2)[3],
|
|
[4],
|
|
|
|
table.footer(
|
|
[The],
|
|
[last],
|
|
[row],
|
|
),
|
|
)
|