summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/tests/testfiles/lunamark-markdown/slice-two-sections.test
blob: d202fd3e42f4e8e5721193f5a30f1865728371d0 (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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
\def\markdownOptionHashEnumerators{true}
\def\markdownOptionDefinitionLists{true}
\def\markdownOptionFootnotes{true}
\def\markdownOptionInlineFootnotes{true}
\def\markdownOptionSmartEllipses{true}
\def\markdownOptionFencedCode{true}
\def\markdownOptionContentBlocks{true}
\def\markdownOptionHeaderAttributes{true}
\def\markdownOptionSlice{first-h2 second-h2}
<<<
This test ensures that the Lua `slice` option correctly propagates through the
plain TeX interface.

This is an H1
=============

This is an H2  {#first-h2}
-------------

### This is an H3
#### This is an H4
##### This is an H5
###### This is an H6

This is a text paragraph containing an ellipsis ... and followed by a horizontal rule.

***

This is inline `code`. This is a [link](http://google.cz "Google").  _This is an *emphasized* span of text_. __This is a **strongly emphasized** span of text__.

  ![example image](example-image.pdf "An example image from Martin Scharrer's mwe package")

  /scientists.csv (The great minds of the 19th century rendered via a content block)

This is a fenced code block:

``` latex
\documentclass{article}
\begin{document}
  Hello world!
\end{document}
```

This is an H2  {#second-h2}
-------------

This is a bullet list:

  * The first item of a bullet list

    that spans several paragraphs,
  * the second item of a bullet list,
  * the third item of a bullet list.

This is a compact bullet list:

  * The first item of a bullet list,
  * the second item of a bullet list,
  * the third item of a bullet list.

This is an ordered list:

  5. The first item of an ordered list

     that spans several paragraphs,
  6. the second item of an ordered list,
  7. the third item of an ordered list.

This is an ordered list using hash enumerators:

  #. The first item of an ordered list

     that spans several paragraphs,
  #. the second item of an ordered list,
  #. the third item of an ordered list.

This is a compact ordered list:

  5. The first item of an ordered list,
  6. the second item of an ordered list,
  7. the third item of an ordered list.

This is a compact ordered list using hash enumerators:

  #. The first item of an ordered list,
  #. the second item of an ordered list,
  #. the third item of an ordered list.

This is a definition list:

Term 1

:   Definition 1

*Term 2*

:   Definition 2
    
        Some code, part of Definition 2
    
    Third paragraph of Definition 2.

:   Definition 3

This is a compact definition list:

Term 1
:   Definition 1
*Term 2*
:   Definition 2
:   Definition 3

This is an H2
-------------

This is a block quote:

> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.

Here is a footnote reference[^1] and another.[^longnote]
Here is an inline note.^[Inlines notes are easier to
write, since you don't have to pick an identifier and
move down to type the note.]
  
[^1]: Here is the footnote.

[^longnote]: Here's one with multiple blocks.
  
    Subsequent paragraphs are indented to show that they
belong to the previous footnote.
  
        Some code

    The whole paragraph can be indented, or just the first
    line.  In this way, multi-paragraph footnotes work like
    multi-paragraph list items.
>>>
headingTwo: This is an H2
interblockSeparator
headingThree: This is an H3
interblockSeparator
headingFour: This is an H4
interblockSeparator
headingFive: This is an H5
interblockSeparator
headingSix: This is an H6
interblockSeparator
ellipsis
interblockSeparator
horizontalRule
interblockSeparator
codeSpan: code
BEGIN link
- label: link
- URI: http://google.cz
- title: Google
END link
emphasis: This is an (emphasis: emphasized) span of text
strongEmphasis: This is a (strongEmphasis: strongly emphasized) span of text
interblockSeparator
BEGIN image
- label: example image
- URI: example-image.pdf
- title: An example image from Martin Scharrer's mwe package
END image
interblockSeparator
BEGIN contentBlock
- suffix: csv
- URI: scientists.csv
- title: The great minds of the 19th century rendered via a content block
END contentBlock
interblockSeparator
interblockSeparator
BEGIN fencedCode
- src: ./_markdown_test/5ccbfd8d1e383aae968fc8c9b1412c8e.verbatim
- infostring: latex
END fencedCode
interblockSeparator
headingTwo: This is an H2
interblockSeparator
interblockSeparator
ulBegin
ulItem
interblockSeparator
ulItemEnd
ulItem
ulItemEnd
ulItem
ulItemEnd
ulEnd
interblockSeparator
interblockSeparator
ulBeginTight
ulItem
ulItemEnd
ulItem
ulItemEnd
ulItem
ulItemEnd
ulEndTight
interblockSeparator
interblockSeparator
olBegin
olItemWithNumber: 5
interblockSeparator
olItemEnd
olItemWithNumber: 6
olItemEnd
olItemWithNumber: 7
olItemEnd
olEnd
interblockSeparator
interblockSeparator
olBegin
olItemWithNumber: 1
interblockSeparator
olItemEnd
olItemWithNumber: 2
olItemEnd
olItemWithNumber: 3
olItemEnd
olEnd
interblockSeparator
interblockSeparator
olBeginTight
olItemWithNumber: 5
olItemEnd
olItemWithNumber: 6
olItemEnd
olItemWithNumber: 7
olItemEnd
olEndTight
interblockSeparator
interblockSeparator
olBeginTight
olItemWithNumber: 1
olItemEnd
olItemWithNumber: 2
olItemEnd
olItemWithNumber: 3
olItemEnd
olEndTight
interblockSeparator
interblockSeparator
dlBegin
dlItem: Term 1
dlDefinitionBegin
dlDefinitionEnd
dlItemEnd
dlItem: (emphasis: Term 2)
dlDefinitionBegin
interblockSeparator
inputVerbatim: ./_markdown_test/341d9e6b078ab6ffb77652958c88c4ef.verbatim
interblockSeparator
dlDefinitionEnd
dlDefinitionBegin
dlDefinitionEnd
dlItemEnd
dlEnd
interblockSeparator
interblockSeparator
dlBeginTight
dlItem: Term 1
dlDefinitionBegin
dlDefinitionEnd
dlItemEnd
dlItem: (emphasis: Term 2)
dlDefinitionBegin
dlDefinitionEnd
dlDefinitionBegin
dlDefinitionEnd
dlItemEnd
dlEndTight
interblockSeparator