diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:54:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-08 11:02:27 +0100 |
| commit | e5eab73374880077971f3f22acbdd3d302877128 (patch) | |
| tree | 07aa926b27032d6bcd82486d664dfd4161ccbd3e /tests/typ/compiler/show-node.typ | |
| parent | 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (diff) | |
Streamline field names
Diffstat (limited to 'tests/typ/compiler/show-node.typ')
| -rw-r--r-- | tests/typ/compiler/show-node.typ | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/typ/compiler/show-node.typ b/tests/typ/compiler/show-node.typ index 6416043c..f87b1971 100644 --- a/tests/typ/compiler/show-node.typ +++ b/tests/typ/compiler/show-node.typ @@ -2,7 +2,7 @@ --- // Override lists. -#show list: it => "(" + it.items.map(item => item.body).join(", ") + ")" +#show list: it => "(" + it.children.map(v => v.body).join(", ") + ")" - A - B @@ -31,9 +31,9 @@ my heading? box(move(dy: -1pt)[📖]) h(5pt) if it.level == 1 { - underline(text(1.25em, blue, it.title)) + underline(text(1.25em, blue, it.body)) } else { - text(red, it.title) + text(red, it.body) } }) @@ -51,7 +51,7 @@ Another text. #show heading: it => { set text(red) show "ding": [🛎] - it.title + it.body } = Heading |
