summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-10-28 23:35:13 +0200
committerLaurenz <laurmaedje@gmail.com>2023-10-29 00:52:15 +0200
commit29130a26f83f28ae37be1ff4f57877e765d27285 (patch)
tree5abc020ae1be4fa2681ca1b977ee7ce398b3a9bb /tests/typ
parent4c75adbb047cba73b052c2fafa9155e2e4026610 (diff)
Linebreaking for links
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/text/linebreak-link.typ16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/typ/text/linebreak-link.typ b/tests/typ/text/linebreak-link.typ
new file mode 100644
index 00000000..18b6d936
--- /dev/null
+++ b/tests/typ/text/linebreak-link.typ
@@ -0,0 +1,16 @@
+// Test linebreaking of links.
+
+---
+#link("https://example.com/(ab") \
+#link("https://example.com/(ab)") \
+#link("https://example.com/(paren)") \
+#link("https://example.com/paren)") \
+#link("https://hi.com/%%%%%%%%abcdef") \
+
+---
+#set page(width: 240pt)
+#set par(justify: true)
+
+Here's a link https://url.com/data/extern12840%data_urlenc and then there are more
+links #link("www.url.com/data/extern12840%data_urlenc") in my text of links
+http://mydataurl/hash/12098541029831025981024980124124214/incremental/progress%linkdata_information_setup_my_link_just_never_stops_going/on?query=false