summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorwznmickey <first@wznmickey.com>2025-01-23 07:52:20 -0500
committerGitHub <noreply@github.com>2025-01-23 12:52:20 +0000
commitce299d5832095013bbcf2baef38552df6d2fc21b (patch)
tree3a4cc76cebd51ebc58bf88a5b572cb0c576c6084 /tests/suite
parent58dbbd48fe415c5a345fb1665aab478a03b5df82 (diff)
Support syntactically directly nested list, enum, and term list (#5728)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/model/enum.typ10
-rw-r--r--tests/suite/model/heading.typ4
-rw-r--r--tests/suite/model/list.typ8
-rw-r--r--tests/suite/model/terms.typ6
4 files changed, 28 insertions, 0 deletions
diff --git a/tests/suite/model/enum.typ b/tests/suite/model/enum.typ
index e957ae9e..288392d4 100644
--- a/tests/suite/model/enum.typ
+++ b/tests/suite/model/enum.typ
@@ -199,3 +199,13 @@ a + 0.
+ f
#align(right)[+ align]
+ h
+
+--- issue-5719-enum-nested ---
+// Enums can be immediately nested.
+1. A
+2. 1. B
+ 2. C
++ + D
+ + E
++ = F
+ G
diff --git a/tests/suite/model/heading.typ b/tests/suite/model/heading.typ
index 45e5b50a..4e529fdf 100644
--- a/tests/suite/model/heading.typ
+++ b/tests/suite/model/heading.typ
@@ -148,3 +148,7 @@ Cannot be used as @intro
// Hint: 1-16 HTML only supports <h1> to <h6>, not <h8>
// Hint: 1-16 you may want to restructure your document so that it doesn't contain deep headings
======= Level 7
+
+--- issue-5719-heading-nested ---
+// Headings may not be nested like this.
+= = A
diff --git a/tests/suite/model/list.typ b/tests/suite/model/list.typ
index b3d9a830..96ddf3c1 100644
--- a/tests/suite/model/list.typ
+++ b/tests/suite/model/list.typ
@@ -276,3 +276,11 @@ World
- h
#align(right)[- i]
- j
+
+--- issue-5719-list-nested ---
+// Lists can be immediately nested.
+- A
+- - B
+ - C
+- = D
+ E
diff --git a/tests/suite/model/terms.typ b/tests/suite/model/terms.typ
index 61fe20b0..23ac6e51 100644
--- a/tests/suite/model/terms.typ
+++ b/tests/suite/model/terms.typ
@@ -90,3 +90,9 @@ Not in list
/ h: h
#align(right)[/ i: i]
/ j: j
+
+--- issue-5719-terms-nested ---
+// Term lists can be immediately nested.
+/ Term A: 1
+/ Term B: / Term C: 2
+ / Term D: 3