From efd1853d069fbd1476e82d015da4d0d04cfaccc0 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 7 Nov 2022 12:21:12 +0100 Subject: Show it! - New show rule syntax - Set if syntax - Removed wrap syntax --- tests/typ/code/field.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/typ/code/field.typ') diff --git a/tests/typ/code/field.typ b/tests/typ/code/field.typ index b63a8768..abea87fb 100644 --- a/tests/typ/code/field.typ +++ b/tests/typ/code/field.typ @@ -14,7 +14,7 @@ --- // Test field on node. -#show node: list as { +#show list: node => { test(node.items.len(), 3) } @@ -32,7 +32,7 @@ --- // Error: 29-32 unknown field "fun" -#show node: heading as node.fun +#show heading: node => node.fun = A --- -- cgit v1.2.3