summaryrefslogtreecommitdiff
path: root/tests/typ/structure/heading.typ
blob: f4ba5f33efba20fe3627d248a82f2ef0ccb7ade9 (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
// Test headings.

---
// Different number of hashtags.

// Valid levels.
= Level 1
=== Level 2
====== Level 6

// At some point, it should stop shrinking.
=========== Level 11

---
// Heading vs. no heading.

// Parsed as headings if at start of the context.
/**/ = Level 1
{[== Level 2]}
#box[=== Level 3]

// Not at the start of the context.
No = heading

// Escaped.
\= No heading

---
// Blocks can continue the heading.

= [This
is
multiline.
]

= This
  is not.

---
// Test styling.
= Heading

#set heading(family: "Roboto", fill: eastern)

===== Heading 🌍
#heading(level: 5)[Heading]