summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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": [🌎]