mirror of
https://github.com/typst/typst
synced 2025-08-10 13:17:55 +08:00
Table cells are not paragraphs
This commit is contained in:
parent
aa67a0e745
commit
bb4fb5c89b
BIN
tests/ref/table-cell-par.png
Normal file
BIN
tests/ref/table-cell-par.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 645 B |
@ -310,6 +310,17 @@
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--- table-cell-par ---
|
||||||
|
// Ensure that table cells aren't considered paragraphs by default.
|
||||||
|
#show par: highlight
|
||||||
|
|
||||||
|
#table(
|
||||||
|
columns: 3,
|
||||||
|
[A],
|
||||||
|
block[B],
|
||||||
|
par[C],
|
||||||
|
)
|
||||||
|
|
||||||
--- grid-cell-in-table ---
|
--- grid-cell-in-table ---
|
||||||
// Error: 8-19 cannot use `grid.cell` as a table cell
|
// Error: 8-19 cannot use `grid.cell` as a table cell
|
||||||
// Hint: 8-19 use `table.cell` instead
|
// Hint: 8-19 use `table.cell` instead
|
||||||
|
Loading…
x
Reference in New Issue
Block a user