summaryrefslogtreecommitdiff
path: root/tests/typ/markup/lists.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-09 00:37:13 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-09 00:37:13 +0200
commit5afb42ad89abb518a01a09051f0f9b6f75bd383e (patch)
treeb12368a287f22de711df8d759c20ee742ed5b4c2 /tests/typ/markup/lists.typ
parentd69dfa84ec957ac4037f60a3335416a9f73b97c8 (diff)
Lists with indent-based parsing
- Unordered lists with indent-based parsing and basic layout using stacks - Headings are now also indent based - Removes syntax functions since they will be superseded by select & transform
Diffstat (limited to 'tests/typ/markup/lists.typ')
-rw-r--r--tests/typ/markup/lists.typ45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/typ/markup/lists.typ b/tests/typ/markup/lists.typ
new file mode 100644
index 00000000..5c464ab8
--- /dev/null
+++ b/tests/typ/markup/lists.typ
@@ -0,0 +1,45 @@
+// Test lists.
+
+---
+_Shopping list_
+- Apples
+- Potatoes
+- Juice
+
+---
+- First level.
+ - Second level.
+
+ There are multiple paragraphs.
+ - Third level.
+
+ Still the same bullet point.
+ - Still level 2.
+- At the top.
+
+---
+- Works
+ - Also with four spaces
+ - Or two tabs
+
+---
+ - Top-level indent
+- is fine.
+
+---
+Tightly
+- surrounded
+- by two
+paragraphs.
+
+---
+ - A
+ - B
+ - C
+ - D
+
+---
+- Level 1
+ - Level [
+2 through template
+]