1 | cases:
|
2 | - title: root node - empty
|
3 | mdast:
|
4 | type: root
|
5 | children: []
|
6 | myst: ''
|
7 | html: ''
|
8 | - title: root node - invalid type
|
9 | invalid: true
|
10 | mdast:
|
11 | type: paragraph
|
12 | children: []
|
13 | - title: text node
|
14 | mdast:
|
15 | type: root
|
16 | children:
|
17 | - type: text
|
18 | value: Hello world!
|
19 | - title: paragraph node
|
20 | mdast:
|
21 | type: root
|
22 | children:
|
23 | - type: paragraph
|
24 | children:
|
25 | - type: text
|
26 | value: Hello world!
|
27 | - title: paragraph node - invalid nesting
|
28 | invalid: true
|
29 | mdast:
|
30 | type: root
|
31 | children:
|
32 | - type: paragraph
|
33 | children:
|
34 | - type: paragraph
|
35 | children: []
|
36 | - title: heading node
|
37 | mdast:
|
38 | type: root
|
39 | children:
|
40 | - type: heading
|
41 | depth: 1
|
42 | children:
|
43 | - type: text
|
44 | value: Hello world!
|
45 | - title: heading node - invalid depth
|
46 | invalid: true
|
47 | mdast:
|
48 | type: root
|
49 | children:
|
50 | - type: heading
|
51 | depth: 7
|
52 | children:
|
53 | - type: text
|
54 | value: Hello world!
|
55 | - title: heading node - invalid children
|
56 | invalid: true
|
57 | mdast:
|
58 | type: root
|
59 | children:
|
60 | - type: heading
|
61 | depth: 7
|
62 | children:
|
63 | - type: paragraph
|
64 | children: []
|
65 | - title: thematic break node
|
66 | mdast:
|
67 | type: root
|
68 | children:
|
69 | - type: thematicBreak
|
70 | - title: blockquote node
|
71 | mdast:
|
72 | type: root
|
73 | children:
|
74 | - type: blockquote
|
75 | children:
|
76 | - type: paragraph
|
77 | children:
|
78 | - type: text
|
79 | value: Hello world!
|
80 | - title: blockquote node - invalid children
|
81 | invalid: true
|
82 | mdast:
|
83 | type: root
|
84 | children:
|
85 | - type: blockquote
|
86 | children:
|
87 | - type: text
|
88 | value: Hello world!
|
89 | - title: list node - empty
|
90 | mdast:
|
91 | type: root
|
92 | children:
|
93 | - type: list
|
94 | children: []
|
95 | - title: list node
|
96 | mdast:
|
97 | type: root
|
98 | children:
|
99 | - type: list
|
100 | children:
|
101 | - type: listItem
|
102 | children:
|
103 | - type: paragraph
|
104 | children:
|
105 | - type: text
|
106 | value: Hello world!
|
107 | - title: list node - with properties
|
108 | mdast:
|
109 | type: root
|
110 | children:
|
111 | - type: list
|
112 | ordered: true
|
113 | start: 3
|
114 | spread: true
|
115 | children:
|
116 | - type: listItem
|
117 | spread: true
|
118 | children:
|
119 | - type: paragraph
|
120 | children:
|
121 | - type: text
|
122 | value: Hello world!
|
123 | - title: list node - invalid children
|
124 | invalid: true
|
125 | mdast:
|
126 | type: root
|
127 | children:
|
128 | - type: list
|
129 | children:
|
130 | - type: list
|
131 | children: []
|
132 | - title: listitem node
|
133 | mdast:
|
134 | type: root
|
135 | children:
|
136 | - type: listItem
|
137 | children:
|
138 | - type: paragraph
|
139 | children:
|
140 | - type: text
|
141 | value: Hello world!
|
142 | - title: listitem node - invalid with other node types
|
143 | invalid: true
|
144 | mdast:
|
145 | type: root
|
146 | children:
|
147 | - type: listItem
|
148 | children:
|
149 | - type: paragraph
|
150 | children:
|
151 | - type: text
|
152 | value: Hello world!
|
153 | - type: paragraph
|
154 | children: []
|
155 | - title: html node
|
156 | mdast:
|
157 | type: root
|
158 | children:
|
159 | - type: html
|
160 | value: <div>
|
161 | - title: code node
|
162 | mdast:
|
163 | type: root
|
164 | children:
|
165 | - type: code
|
166 | value: print('Hello world!')
|
167 | - title: code node - with lang
|
168 | mdast:
|
169 | type: root
|
170 | children:
|
171 | - type: code
|
172 | lang: python
|
173 | value: print('Hello world!')
|
174 | - title: code node - with lang and meta
|
175 | mdast:
|
176 | type: root
|
177 | children:
|
178 | - type: code
|
179 | lang: python
|
180 | meta: highlight-line=1
|
181 | value: print('Hello world!')
|
182 | - title: code node - invalid with only meta
|
183 | invalid: true
|
184 | mdast:
|
185 | type: root
|
186 | children:
|
187 | - type: code
|
188 | meta: highlight-line=1
|
189 | value: print('Hello world!')
|
190 | - title: definition node
|
191 | mdast:
|
192 | type: root
|
193 | children:
|
194 | - type: definition
|
195 | identifier: alpha
|
196 | url: https://example.com
|
197 | - title: definition node - with optional properties
|
198 | mdast:
|
199 | type: root
|
200 | children:
|
201 | - type: definition
|
202 | identifier: alpha
|
203 | label: ' Alpha '
|
204 | url: https://example.com
|
205 | title: Hello world!
|
206 | - title: strong node
|
207 | mdast:
|
208 | type: root
|
209 | children:
|
210 | - type: paragraph
|
211 | children:
|
212 | - type: strong
|
213 | children:
|
214 | - type: text
|
215 | value: Hello world!
|
216 | - title: strong node - invalid children
|
217 | invalid: true
|
218 | mdast:
|
219 | type: root
|
220 | children:
|
221 | - type: paragraph
|
222 | children:
|
223 | - type: strong
|
224 | children:
|
225 | - type: paragraph
|
226 | children: []
|
227 | - title: inline code node
|
228 | mdast:
|
229 | type: root
|
230 | children:
|
231 | - type: inlineCode
|
232 | value: foo()
|
233 | - title: break node
|
234 | mdast:
|
235 | type: root
|
236 | children:
|
237 | - type: break
|
238 | - title: link node
|
239 | mdast:
|
240 | type: root
|
241 | children:
|
242 | - type: link
|
243 | url: https://example.com
|
244 | children:
|
245 | - type: text
|
246 | value: alpha
|
247 | - title: link node - with optional properties
|
248 | mdast:
|
249 | type: root
|
250 | children:
|
251 | - type: link
|
252 | url: https://example.com
|
253 | title: Alpha
|
254 | children:
|
255 | - type: text
|
256 | value: alpha
|
257 | - title: emaphasis node - with link child
|
258 | mdast:
|
259 | type: root
|
260 | children:
|
261 | - type: emphasis
|
262 | children:
|
263 | - type: link
|
264 | url: https://example.com
|
265 | children:
|
266 | - type: text
|
267 | value: alpha
|
268 | - title: link node - with emphasis child
|
269 | mdast:
|
270 | type: root
|
271 | children:
|
272 | - type: link
|
273 | url: https://example.com
|
274 | children:
|
275 | - type: emphasis
|
276 | children:
|
277 | - type: text
|
278 | value: alpha
|
279 | - title: link node - with invalid link child
|
280 | invalid: true
|
281 | mdast:
|
282 | type: root
|
283 | children:
|
284 | - type: link
|
285 | url: https://example.com
|
286 | children:
|
287 | - type: emphasis
|
288 | children:
|
289 | - type: link
|
290 | url: https://example.com
|
291 | children:
|
292 | - type: text
|
293 | value: alpha
|
294 | - title: emaphasis node - with link child
|
295 | mdast:
|
296 | type: root
|
297 | children:
|
298 | - type: strong
|
299 | children:
|
300 | - type: link
|
301 | url: https://example.com
|
302 | children:
|
303 | - type: text
|
304 | value: alpha
|
305 | - title: link node - with strong child
|
306 | mdast:
|
307 | type: root
|
308 | children:
|
309 | - type: link
|
310 | url: https://example.com
|
311 | children:
|
312 | - type: strong
|
313 | children:
|
314 | - type: text
|
315 | value: alpha
|
316 | - title: link node - with invalid link child
|
317 | invalid: true
|
318 | mdast:
|
319 | type: root
|
320 | children:
|
321 | - type: link
|
322 | url: https://example.com
|
323 | children:
|
324 | - type: strong
|
325 | children:
|
326 | - type: link
|
327 | url: https://example.com
|
328 | children:
|
329 | - type: text
|
330 | value: alpha
|
331 | - title: image node
|
332 | mdast:
|
333 | type: root
|
334 | children:
|
335 | - type: image
|
336 | url: https://example.com
|
337 | - title: image node - with optional properties
|
338 | mdast:
|
339 | type: root
|
340 | children:
|
341 | - type: image
|
342 | url: https://example.com
|
343 | alt: alpha
|
344 | title: bravo
|
345 | - title: link reference node
|
346 | mdast:
|
347 | type: root
|
348 | children:
|
349 | - type: linkReference
|
350 | identifier: bravo
|
351 | referenceType: shortcut
|
352 | children: []
|
353 | - title: link reference node - with optional properties
|
354 | mdast:
|
355 | type: root
|
356 | children:
|
357 | - type: linkReference
|
358 | identifier: bravo
|
359 | label: Bravo
|
360 | referenceType: full
|
361 | children:
|
362 | - type: strong
|
363 | children:
|
364 | - type: text
|
365 | value: alpha
|
366 | - title: link reference node - invalid referenceType
|
367 | invalid: true
|
368 | mdast:
|
369 | type: root
|
370 | children:
|
371 | - type: linkReference
|
372 | identifier: bravo
|
373 | referenceType: something
|
374 | children: []
|
375 | - title: link reference node - no referenceType
|
376 | invalid: true
|
377 | mdast:
|
378 | type: root
|
379 | children:
|
380 | - type: linkReference
|
381 | identifier: bravo
|
382 | children: []
|
383 | - title: link reference node - invalid link child
|
384 | invalid: true
|
385 | mdast:
|
386 | type: root
|
387 | children:
|
388 | - type: linkReference
|
389 | identifier: bravo
|
390 | label: Bravo
|
391 | referenceType: full
|
392 | children:
|
393 | - type: strong
|
394 | children:
|
395 | - type: link
|
396 | url: https://example.com
|
397 | children:
|
398 | - type: text
|
399 | value: alpha
|
400 | - title: link reference node - invalid link reference child
|
401 | invalid: true
|
402 | mdast:
|
403 | type: root
|
404 | children:
|
405 | - type: linkReference
|
406 | identifier: bravo
|
407 | referenceType: collapsed
|
408 | children:
|
409 | - type: linkReference
|
410 | identifier: delta
|
411 | referenceType: collapsed
|
412 | - title: image reference node
|
413 | mdast:
|
414 | type: root
|
415 | children:
|
416 | - type: imageReference
|
417 | identifier: alpha
|
418 | referenceType: collapsed
|
419 | - title: image reference node - with optional properties
|
420 | mdast:
|
421 | type: root
|
422 | children:
|
423 | - type: imageReference
|
424 | identifier: alpha
|
425 | label: Alpha
|
426 | alt: bravo
|
427 | referenceType: collapsed
|
428 | - title: image reference node - invalid missing properties
|
429 | invalid: true
|
430 | mdast:
|
431 | type: root
|
432 | children:
|
433 | - type: imageReference
|
434 | referenceType: full
|