typst-0.1.0.0: test/typ/compiler/show-recursive-02.typ
// Test show rule in function.
#let starwars(body) = {
show list: it => block({
stack(dir: ltr,
text(red, it),
1fr,
scale(x: -100%, text(blue, it)),
)
})
body
}
- Normal list
#starwars[
- Star
- Wars
- List
]
- Normal list