summaryrefslogtreecommitdiff
path: root/tests/suite/layout/grid/html.typ
blob: 2a7dfc2cec25b5c6add7a8076b48b7de906c1c83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- 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],
  ),
)