summaryrefslogtreecommitdiff
path: root/tests/typ/structure/list.typ
blob: 52cd51beb66f04a4de401e6dd2dd96d6a9d7da1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Test lists.

---
_Shopping list_
#list[Apples][Potatoes][Juice]

---
Tightly
- surrounded
- by two
paragraphs.

---
- First level.

  - Second level.

    There are multiple paragraphs.
    - Third level.
    Still the same bullet point.

  - Still level 2.

- At the top.

---
- Level 1
  - Level [
2 through content block
]

---
  - Top-level indent
- is fine.

---
 - A
     - B
   - C
- D

---
// This works because tabs are used consistently.
	- A with 1 tab
		- B with 2 tabs

// This doesn't work because of mixed tabs and spaces.
  - A with 2 spaces
		- B with 2 tabs

---
#set list(label: [-])
- Bare hyphen
- is not a list