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