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/base/eval.typ | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tests/typ/base') diff --git a/tests/typ/base/eval.typ b/tests/typ/base/eval.typ index 86b1f0c4..668264d3 100644 --- a/tests/typ/base/eval.typ +++ b/tests/typ/base/eval.typ @@ -9,7 +9,7 @@ --- #set raw(around: none) -#show it: raw as text("IBM Plex Sans", eval(it.text)) +#show raw: it => text("IBM Plex Sans", eval(it.text)) Interacting ``` @@ -31,19 +31,18 @@ Blue #move(dy: -0.15em)[🌊] --- // Error: 23-30 cannot access file system from here -#show it: raw as eval(it.text) +#show raw: it => eval(it.text) ``` -#show strong as image("/res/tiger.jpg") -*No absolute tiger!* +#image("/res/tiger.jpg") ``` --- // Error: 23-30 cannot access file system from here -#show it: raw as eval(it.text) +#show raw: it => eval(it.text) ``` -#show emph as image("../../res/giraffe.jpg") +#show emph: _ => image("../../res/giraffe.jpg") _No relative giraffe!_ ``` -- cgit v1.2.3