krz/orgo
Lightning fast org-mode static site generator.
clone: git clone https://gitbay.org/krz/orgo.git
v0.19.1: tests/snapshots/pipeline__core_element_tree.snap · raw
1---
2source: tests/pipeline.rs
3expression: "parse_fixture(\"core.org\").root"
4---
5{
6 "heading": null,
7 "content": [
8 {
9 "Keyword": {
10 "key": "TITLE",
11 "value": "Core Constructs"
12 }
13 },
14 {
15 "Paragraph": [
16 {
17 "Text": "Intro paragraph with a bare URL "
18 },
19 {
20 "Link": {
21 "target": {
22 "External": "https://example.com"
23 },
24 "description": null
25 }
26 },
27 {
28 "Text": " and some "
29 },
30 {
31 "Code": "inline code"
32 },
33 {
34 "Text": "."
35 }
36 ]
37 }
38 ],
39 "children": [
40 {
41 "heading": {
42 "level": 1,
43 "todo": null,
44 "priority": null,
45 "title": [
46 {
47 "Text": "Ordered and checked"
48 }
49 ],
50 "tags": [],
51 "properties": {
52 "entries": []
53 },
54 "id": null,
55 "custom_id": null
56 },
57 "content": [
58 {
59 "List": {
60 "kind": "Ordered",
61 "items": [
62 {
63 "bullet": {
64 "Ordered": 1
65 },
66 "counter": null,
67 "checkbox": null,
68 "term": null,
69 "content": [
70 {
71 "Paragraph": [
72 {
73 "Text": "first item"
74 }
75 ]
76 }
77 ]
78 },
79 {
80 "bullet": {
81 "Ordered": 2
82 },
83 "counter": null,
84 "checkbox": null,
85 "term": null,
86 "content": [
87 {
88 "Paragraph": [
89 {
90 "Text": "second item with "
91 },
92 {
93 "Italic": [
94 {
95 "Text": "emphasis"
96 }
97 ]
98 }
99 ]
100 }
101 ]
102 }
103 ]
104 }
105 },
106 {
107 "List": {
108 "kind": "Unordered",
109 "items": [
110 {
111 "bullet": "Dash",
112 "counter": null,
113 "checkbox": "Off",
114 "term": null,
115 "content": [
116 {
117 "Paragraph": [
118 {
119 "Text": "todo item"
120 }
121 ]
122 }
123 ]
124 },
125 {
126 "bullet": "Dash",
127 "counter": null,
128 "checkbox": "On",
129 "term": null,
130 "content": [
131 {
132 "Paragraph": [
133 {
134 "Text": "done item"
135 }
136 ]
137 }
138 ]
139 }
140 ]
141 }
142 }
143 ],
144 "children": []
145 },
146 {
147 "heading": {
148 "level": 1,
149 "todo": null,
150 "priority": null,
151 "title": [
152 {
153 "Text": "Links and code"
154 }
155 ],
156 "tags": [],
157 "properties": {
158 "entries": []
159 },
160 "id": null,
161 "custom_id": null
162 },
163 "content": [
164 {
165 "Paragraph": [
166 {
167 "Text": "An external "
168 },
169 {
170 "Link": {
171 "target": {
172 "External": "https://example.org"
173 },
174 "description": [
175 {
176 "Text": "site"
177 }
178 ]
179 }
180 },
181 {
182 "Text": " and a bare "
183 },
184 {
185 "Link": {
186 "target": {
187 "External": "https://bare.example"
188 },
189 "description": null
190 }
191 },
192 {
193 "Text": "."
194 }
195 ]
196 },
197 {
198 "SrcBlock": {
199 "lang": "rust",
200 "params": {
201 "raw": ""
202 },
203 "code": "fn main() {\n println!(\"hello\");\n}"
204 }
205 }
206 ],
207 "children": []
208 }
209 ]
210}