summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-01-13 16:09:08 +0100
committerLaurenz <laurmaedje@gmail.com>2021-01-13 16:09:08 +0100
commit274e008e2c775d9c8c888767a6baeaff9e99de9d (patch)
treed648d0ae1182bf579968c31d1c9627edcced206e /tests
parent1d01b93f679bccf8f228616bcf0f0ebcdee64d98 (diff)
Move heading tests to integration 🚚
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/headings.pngbin0 -> 7991 bytes
-rw-r--r--tests/typ/headings.typ40
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/ref/headings.png b/tests/ref/headings.png
new file mode 100644
index 00000000..b16e38a6
--- /dev/null
+++ b/tests/ref/headings.png
Binary files differ
diff --git a/tests/typ/headings.typ b/tests/typ/headings.typ
new file mode 100644
index 00000000..88c76ad3
--- /dev/null
+++ b/tests/typ/headings.typ
@@ -0,0 +1,40 @@
+// Number of hashtags.
+//
+// warning: 5:1-5:8 section depth should not exceed 6
+
+# One
+### Three
+###### Six
+####### Seven
+
+---
+// Is a heading.
+
+/**/ # Heading
+{[## Heading]}
+[box][### Heading]
+
+---
+// Is no heading.
+//
+// error: 4:1-4:6 unexpected invalid token
+
+\# No heading
+
+Text with # hashtag
+
+#nope
+
+---
+// Heading continues over linebreak.
+
+# This {
+ "works"
+}
+
+# [box][
+ This
+] too
+
+# This
+does not