krz/orgo
Lightning fast org-mode static site generator.
clone: git clone https://gitbay.org/krz/orgo.git
main: tests/snapshots/pipeline__minimal_element_tree.snap · raw
1---
2source: tests/pipeline.rs
3expression: "parse_fixture(\"minimal.org\").root"
4---
5{
6 "heading": null,
7 "content": [
8 {
9 "Keyword": {
10 "key": "TITLE",
11 "value": "Minimal Fixture"
12 }
13 },
14 {
15 "Keyword": {
16 "key": "DATE",
17 "value": "2026-08-08"
18 }
19 },
20 {
21 "Keyword": {
22 "key": "AUTHOR",
23 "value": "Owner"
24 }
25 },
26 {
27 "Paragraph": [
28 {
29 "Text": "A single paragraph of preamble text before any heading."
30 }
31 ]
32 }
33 ],
34 "children": [
35 {
36 "heading": {
37 "level": 1,
38 "todo": null,
39 "priority": null,
40 "title": [
41 {
42 "Text": "First Heading"
43 }
44 ],
45 "tags": [],
46 "properties": {
47 "entries": [
48 [
49 "CUSTOM_ID",
50 "first"
51 ]
52 ]
53 },
54 "id": null,
55 "custom_id": "first"
56 },
57 "content": [
58 {
59 "Paragraph": [
60 {
61 "Text": "Some body text with "
62 },
63 {
64 "Bold": [
65 {
66 "Text": "bold"
67 }
68 ]
69 },
70 {
71 "Text": ", "
72 },
73 {
74 "Italic": [
75 {
76 "Text": "italic"
77 }
78 ]
79 },
80 {
81 "Text": ", and "
82 },
83 {
84 "Verbatim": "verbatim"
85 },
86 {
87 "Text": "."
88 }
89 ]
90 }
91 ],
92 "children": [
93 {
94 "heading": {
95 "level": 2,
96 "todo": null,
97 "priority": null,
98 "title": [
99 {
100 "Text": "A Subheading"
101 }
102 ],
103 "tags": [
104 "tag1",
105 "tag2"
106 ],
107 "properties": {
108 "entries": []
109 },
110 "id": null,
111 "custom_id": null
112 },
113 "content": [
114 {
115 "List": {
116 "kind": "Unordered",
117 "items": [
118 {
119 "bullet": "Dash",
120 "counter": null,
121 "checkbox": null,
122 "term": null,
123 "content": [
124 {
125 "Paragraph": [
126 {
127 "Text": "an unordered item"
128 }
129 ]
130 }
131 ]
132 },
133 {
134 "bullet": "Dash",
135 "counter": null,
136 "checkbox": null,
137 "term": null,
138 "content": [
139 {
140 "Paragraph": [
141 {
142 "Text": "another with a checkbox [ ]"
143 }
144 ]
145 }
146 ]
147 }
148 ]
149 }
150 }
151 ],
152 "children": []
153 }
154 ]
155 },
156 {
157 "heading": {
158 "level": 1,
159 "todo": null,
160 "priority": null,
161 "title": [
162 {
163 "Text": "Second Heading"
164 }
165 ],
166 "tags": [],
167 "properties": {
168 "entries": []
169 },
170 "id": null,
171 "custom_id": null
172 },
173 "content": [
174 {
175 "Paragraph": [
176 {
177 "Text": "See "
178 },
179 {
180 "Link": {
181 "target": {
182 "CustomId": "first"
183 },
184 "description": [
185 {
186 "Text": "the first heading"
187 }
188 ]
189 }
190 },
191 {
192 "Text": "."
193 }
194 ]
195 }
196 ],
197 "children": []
198 }
199 ]
200}