summaryrefslogtreecommitdiff
path: root/tests/typ
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/typ
parent1d01b93f679bccf8f228616bcf0f0ebcdee64d98 (diff)
Move heading tests to integration 🚚
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/headings.typ40
1 files changed, 40 insertions, 0 deletions
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