aboutsummaryrefslogtreecommitdiff
path: root/test/command/5846.md
blob: ec00074d3384d937bbf4e7c843fa28e42dac9e97 (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
```
% pandoc --section-divs
::: {.mydiv}
# header 1a

one

# header 1b

two
:::
^D
<div class="mydiv">
<section id="header-1a" class="level1">
<h1>header 1a</h1>
<p>one</p>
</section>
<section id="header-1b" class="level1">
<h1>header 1b</h1>
<p>two</p>
</section>
</div>
```

```
% pandoc --section-divs
::: mydiv
# head 1
## head 1.1
# head 2
:::

## head 2.1
^D
<div class="mydiv">
<section id="head-1" class="level1">
<h1>head 1</h1>
<section id="head-1.1" class="level2">
<h2>head 1.1</h2>
</section>
</section>
<section id="head-2" class="level1">
<h1>head 2</h1>
</section>
</div>
<section id="head-2.1" class="level2">
<h2>head 2.1</h2>
</section>
```

```
% pandoc --section-divs
# One
## One A
::: fence
## One B
# Two
:::
^D
<section id="one" class="level1">
<h1>One</h1>
<section id="one-a" class="level2">
<h2>One A</h2>
</section>
<div class="fence">
<section id="one-b" class="level2">
<h2>One B</h2>
</section>
<section id="two" class="level1">
<h1>Two</h1>
</section>
</div>
</section>
```

```
% pandoc --section-divs
# Beginning

::: exterior

At first...

:::

In the beginning...

::: interior

# Middle

So it continued...

:::

# Ending

::: exterior

And finally...

:::
^D
<section id="beginning" class="level1">
<h1>Beginning</h1>
<div class="exterior">
<p>At first…</p>
</div>
<p>In the beginning…</p>
</section>
<section id="middle" class="level1 interior">
<h1>Middle</h1>
<p>So it continued…</p>
</section>
<section id="ending" class="level1">
<h1>Ending</h1>
<div class="exterior">
<p>And finally…</p>
</div>
</section>
```

```
% pandoc --section-divs
::: part
# One
# Two
:::
::: part
# Three
# Four
# Five
:::
::: part
# Six
# Seven
# Eight
:::
^D
<div class="part">
<section id="one" class="level1">
<h1>One</h1>
</section>
<section id="two" class="level1">
<h1>Two</h1>
</section>
</div>
<div class="part">
<section id="three" class="level1">
<h1>Three</h1>
</section>
<section id="four" class="level1">
<h1>Four</h1>
</section>
<section id="five" class="level1">
<h1>Five</h1>
</section>
</div>
<div class="part">
<section id="six" class="level1">
<h1>Six</h1>
</section>
<section id="seven" class="level1">
<h1>Seven</h1>
</section>
<section id="eight" class="level1">
<h1>Eight</h1>
</section>
</div>
```