summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-10-02 13:51:09 +0200
committerGitHub <noreply@github.com>2024-10-02 11:51:09 +0000
commitfcdccc9cbae02be0ac61f5f50f7f1a256fdd2b11 (patch)
tree671065febf3d6474c0d94f27a90c1fd927847414 /tests
parentb791aede82cc1424ba38b74200193096390ceecd (diff)
Fix textual grouping (#5097)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/show-text-in-citation.pngbin0 -> 795 bytes
-rw-r--r--tests/suite/styling/show-text.typ12
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/ref/show-text-in-citation.png b/tests/ref/show-text-in-citation.png
new file mode 100644
index 00000000..392487bc
--- /dev/null
+++ b/tests/ref/show-text-in-citation.png
Binary files differ
diff --git a/tests/suite/styling/show-text.typ b/tests/suite/styling/show-text.typ
index 4e031648..af45127c 100644
--- a/tests/suite/styling/show-text.typ
+++ b/tests/suite/styling/show-text.typ
@@ -162,6 +162,18 @@ hi
#show bibliography: none
#bibliography("/assets/bib/works.bib")
+--- show-text-in-citation ---
+#show "A": "B"
+#show "[": "("
+#show "]": ")"
+#show "[2]": set text(red)
+
+@netwok A \
+@arrgh B
+
+#show bibliography: none
+#bibliography("/assets/bib/works.bib")
+
--- show-text-linebreak ---
#show "lo\nwo": set text(red)
Hello #[ ] \