typst/tests/typ/layout/grid-5.typ

30 lines
372 B
Plaintext

---
// Test that trailing linebreak doesn't overflow the region.
#set page(height: 2cm)
#grid[
Hello \
Hello \
Hello \
World
]
---
// Test that broken cell expands vertically.
#set page(height: 2.25cm)
#grid(
columns: 2,
gutter: 10pt,
align(bottom)[A],
[
Top
#align(bottom)[
Bottom \
Bottom \
Top
]
],
align(top)[B],
)