add test for orphan prevention of alone subheaders

Consecutive subheaders can be broken apart in special cases
This commit is contained in:
PgBiel 2025-04-17 02:45:25 -03:00
parent e9e37a313a
commit e76ea64cb0
2 changed files with 15 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

View File

@ -436,3 +436,18 @@
[b]
),
)
--- grid-subheaders-alone-no-orphan-prevention ---
#set page(height: 5.3em)
#v(2em)
#grid(
grid.header(
// (
[L1]
),
grid.header(
// (
level: 2,
[L2]
),
)