summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-18 14:31:51 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-18 14:31:51 +0100
commit9b8c1dc19fcda399f00e486460b4cc521d1a460b (patch)
tree993e6045643c63ed957d81d8a3bdf0873b1ac2bb /tests
parent92f2c56203c6528e35ec1feae14e5dd2c2425311 (diff)
Pass text node to text show rule instead of string
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/style/show-text.pngbin44838 -> 47038 bytes
-rw-r--r--tests/typ/style/show-text.typ5
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/ref/style/show-text.png b/tests/ref/style/show-text.png
index e901b488..1d343345 100644
--- a/tests/ref/style/show-text.png
+++ b/tests/ref/style/show-text.png
Binary files differ
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": [🌎]