summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-19 13:32:12 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-19 13:32:12 +0100
commitca3df70e2a5069832d7d2135967674c34a155442 (patch)
tree9a92594d73ce060f30296df5c3bc3e230d9d8459 /tests
parent54a9ccb1a5e9f1f1e5d2538d2f4ce3d4f7afc4ae (diff)
Add basic paragraph function 📑
Allows to change: - (paragraph) spacing - leading - word-spacing
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/library/paragraph.pngbin0 -> 4170 bytes
-rw-r--r--tests/typ/library/paragraph.typ13
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/ref/library/paragraph.png b/tests/ref/library/paragraph.png
new file mode 100644
index 00000000..bf38bdf8
--- /dev/null
+++ b/tests/ref/library/paragraph.png
Binary files differ
diff --git a/tests/typ/library/paragraph.typ b/tests/typ/library/paragraph.typ
new file mode 100644
index 00000000..3ce946bd
--- /dev/null
+++ b/tests/typ/library/paragraph.typ
@@ -0,0 +1,13 @@
+// Test the `paragraph` function.
+
+---
+// Test configuring paragraph properties.
+
+#paragraph(spacing: 10pt, leading: 25%, word-spacing: 1pt)
+
+But, soft! what light through yonder window breaks? It is the east, and Juliet
+is the sun.
+
+---
+// Test that it finishes an existing paragraph.
+Hello #paragraph(word-spacing: 0pt) t h e r e !