blob: 8497ec8f73973dda5aa5d0a1e89416c4d901331d (
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
|
// Test headings.
---
// Different number of hashtags.
// Valid levels.
=1
===2
======6
// Too many hashtags.
// Warning: 1-8 should not exceed depth 6
=======7
---
// Heading continuation over linebreak.
// Code blocks continue heading.
= A{
"B"
}
// Function call continues heading.
= #box[
A
] B
// Without some kind of block, headings end at a line break.
= A
B
---
// Heading vs. no heading.
// Parsed as headings if at start of the context.
/**/ = Ok
{[== Ok]}
#box[=== Ok]
// Not at the start of the context.
No = heading
// Escaped.
\= No heading
|