diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-18 14:31:51 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-18 14:31:51 +0100 |
| commit | 9b8c1dc19fcda399f00e486460b4cc521d1a460b (patch) | |
| tree | 993e6045643c63ed957d81d8a3bdf0873b1ac2bb /tests | |
| parent | 92f2c56203c6528e35ec1feae14e5dd2c2425311 (diff) | |
Pass text node to text show rule instead of string
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/style/show-text.png | bin | 44838 -> 47038 bytes | |||
| -rw-r--r-- | tests/typ/style/show-text.typ | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/ref/style/show-text.png b/tests/ref/style/show-text.png Binary files differindex e901b488..1d343345 100644 --- a/tests/ref/style/show-text.png +++ b/tests/ref/style/show-text.png diff --git a/tests/typ/style/show-text.typ b/tests/typ/style/show-text.typ index 457ce9b7..138b9b02 100644 --- a/tests/typ/style/show-text.typ +++ b/tests/typ/style/show-text.typ @@ -48,6 +48,11 @@ Treeworld, the World of worlds, is a world. Rust is memory-safe and blazingly fast. Let's rewrite everything in rust. --- +// Test accessing the string itself. +#show "hello": it => it.text.split("").map(upper).join("|") +Oh, hello there! + +--- // Replace worlds but only in lists. #show list: it => [ #show "World": [🌎] |
