UNPKG

1.47 kBYAMLView Raw
1cases:
2 - title: block break node
3 mdast:
4 type: root
5 children:
6 - type: blockBreak
7 myst: |-
8 +++
9 - title: block break node - with metadata
10 mdast:
11 type: root
12 children:
13 - type: blockBreak
14 meta: '{"meta": "data"}'
15 myst: |-
16 +++ {"meta": "data"}
17 - title: block break node - with broken metadata
18 mdast:
19 type: root
20 children:
21 - type: blockBreak
22 meta: '{"meta: data}'
23 myst: |-
24 +++ {"meta: data}
25 - title: block break nodes - dividing flow content
26 id: blockbreak
27 mdast:
28 type: root
29 children:
30 - type: blockBreak
31 - type: heading
32 depth: 1
33 children:
34 - type: text
35 value: Heading!
36 - type: blockBreak
37 myst: |-
38 +++
39 # Heading!
40 +++
41 - title: block node - resolved from block breaks with flow content
42 mdast:
43 type: root
44 children:
45 - type: block
46 children:
47 - type: heading
48 depth: 1
49 children:
50 - type: text
51 value: Heading!
52 - type: block
53 children: []
54 html: |-
55 <div class="block">
56 <h1>Heading!</h1>
57 </div>
58 <div class="block"></div>
59 - title: block node - invalid nesting
60 invalid: true
61 mdast:
62 type: root
63 children:
64 - type: block
65 children:
66 - type: block