krz/orgo

Lightning fast org-mode static site generator.

clone: git clone https://gitbay.org/krz/orgo.git

main: tests/snapshots/constructs__lists_element_tree.snap · raw

  1---
  2source: tests/constructs.rs
  3expression: "parse_fixture(\"lists.org\").root"
  4---
  5{
  6  "heading": null,
  7  "content": [
  8    {
  9      "Keyword": {
 10        "key": "TITLE",
 11        "value": "Lists"
 12      }
 13    }
 14  ],
 15  "children": [
 16    {
 17      "heading": {
 18        "level": 1,
 19        "todo": null,
 20        "priority": null,
 21        "title": [
 22          {
 23            "Text": "Nesting"
 24          }
 25        ],
 26        "tags": [],
 27        "properties": {
 28          "entries": []
 29        },
 30        "id": null,
 31        "custom_id": null
 32      },
 33      "content": [
 34        {
 35          "List": {
 36            "kind": "Unordered",
 37            "items": [
 38              {
 39                "bullet": "Dash",
 40                "counter": null,
 41                "checkbox": null,
 42                "term": null,
 43                "content": [
 44                  {
 45                    "Paragraph": [
 46                      {
 47                        "Text": "outer item"
 48                      }
 49                    ]
 50                  },
 51                  {
 52                    "List": {
 53                      "kind": "Unordered",
 54                      "items": [
 55                        {
 56                          "bullet": "Dash",
 57                          "counter": null,
 58                          "checkbox": null,
 59                          "term": null,
 60                          "content": [
 61                            {
 62                              "Paragraph": [
 63                                {
 64                                  "Text": "inner item"
 65                                }
 66                              ]
 67                            },
 68                            {
 69                              "List": {
 70                                "kind": "Unordered",
 71                                "items": [
 72                                  {
 73                                    "bullet": "Dash",
 74                                    "counter": null,
 75                                    "checkbox": null,
 76                                    "term": null,
 77                                    "content": [
 78                                      {
 79                                        "Paragraph": [
 80                                          {
 81                                            "Text": "deepest item"
 82                                          }
 83                                        ]
 84                                      }
 85                                    ]
 86                                  }
 87                                ]
 88                              }
 89                            }
 90                          ]
 91                        },
 92                        {
 93                          "bullet": "Dash",
 94                          "counter": null,
 95                          "checkbox": null,
 96                          "term": null,
 97                          "content": [
 98                            {
 99                              "Paragraph": [
100                                {
101                                  "Text": "second inner"
102                                }
103                              ]
104                            }
105                          ]
106                        }
107                      ]
108                    }
109                  }
110                ]
111              },
112              {
113                "bullet": "Dash",
114                "counter": null,
115                "checkbox": null,
116                "term": null,
117                "content": [
118                  {
119                    "Paragraph": [
120                      {
121                        "Text": "second outer"
122                      }
123                    ]
124                  }
125                ]
126              }
127            ]
128          }
129        }
130      ],
131      "children": []
132    },
133    {
134      "heading": {
135        "level": 1,
136        "todo": null,
137        "priority": null,
138        "title": [
139          {
140            "Text": "Ordered"
141          }
142        ],
143        "tags": [],
144        "properties": {
145          "entries": []
146        },
147        "id": null,
148        "custom_id": null
149      },
150      "content": [
151        {
152          "List": {
153            "kind": "Ordered",
154            "items": [
155              {
156                "bullet": {
157                  "Ordered": 1
158                },
159                "counter": null,
160                "checkbox": null,
161                "term": null,
162                "content": [
163                  {
164                    "Paragraph": [
165                      {
166                        "Text": "first"
167                      }
168                    ]
169                  }
170                ]
171              },
172              {
173                "bullet": {
174                  "Ordered": 2
175                },
176                "counter": null,
177                "checkbox": null,
178                "term": null,
179                "content": [
180                  {
181                    "Paragraph": [
182                      {
183                        "Text": "second"
184                      }
185                    ]
186                  },
187                  {
188                    "List": {
189                      "kind": "Ordered",
190                      "items": [
191                        {
192                          "bullet": {
193                            "Ordered": 1
194                          },
195                          "counter": null,
196                          "checkbox": null,
197                          "term": null,
198                          "content": [
199                            {
200                              "Paragraph": [
201                                {
202                                  "Text": "second point one"
203                                }
204                              ]
205                            }
206                          ]
207                        },
208                        {
209                          "bullet": {
210                            "Ordered": 2
211                          },
212                          "counter": null,
213                          "checkbox": null,
214                          "term": null,
215                          "content": [
216                            {
217                              "Paragraph": [
218                                {
219                                  "Text": "second point two"
220                                }
221                              ]
222                            }
223                          ]
224                        }
225                      ]
226                    }
227                  }
228                ]
229              },
230              {
231                "bullet": {
232                  "Ordered": 3
233                },
234                "counter": null,
235                "checkbox": null,
236                "term": null,
237                "content": [
238                  {
239                    "Paragraph": [
240                      {
241                        "Text": "third"
242                      }
243                    ]
244                  }
245                ]
246              }
247            ]
248          }
249        }
250      ],
251      "children": []
252    },
253    {
254      "heading": {
255        "level": 1,
256        "todo": null,
257        "priority": null,
258        "title": [
259          {
260            "Text": "Checkboxes"
261          }
262        ],
263        "tags": [],
264        "properties": {
265          "entries": []
266        },
267        "id": null,
268        "custom_id": null
269      },
270      "content": [
271        {
272          "List": {
273            "kind": "Unordered",
274            "items": [
275              {
276                "bullet": "Dash",
277                "counter": null,
278                "checkbox": "Off",
279                "term": null,
280                "content": [
281                  {
282                    "Paragraph": [
283                      {
284                        "Text": "not done"
285                      }
286                    ]
287                  }
288                ]
289              },
290              {
291                "bullet": "Dash",
292                "counter": null,
293                "checkbox": "On",
294                "term": null,
295                "content": [
296                  {
297                    "Paragraph": [
298                      {
299                        "Text": "done"
300                      }
301                    ]
302                  }
303                ]
304              },
305              {
306                "bullet": "Dash",
307                "counter": null,
308                "checkbox": "Trans",
309                "term": null,
310                "content": [
311                  {
312                    "Paragraph": [
313                      {
314                        "Text": "partially done"
315                      }
316                    ]
317                  }
318                ]
319              }
320            ]
321          }
322        }
323      ],
324      "children": []
325    },
326    {
327      "heading": {
328        "level": 1,
329        "todo": null,
330        "priority": null,
331        "title": [
332          {
333            "Text": "Description"
334          }
335        ],
336        "tags": [],
337        "properties": {
338          "entries": []
339        },
340        "id": null,
341        "custom_id": null
342      },
343      "content": [
344        {
345          "List": {
346            "kind": "Description",
347            "items": [
348              {
349                "bullet": "Dash",
350                "counter": null,
351                "checkbox": null,
352                "term": [
353                  {
354                    "Text": "term one"
355                  }
356                ],
357                "content": [
358                  {
359                    "Paragraph": [
360                      {
361                        "Text": "the first definition"
362                      }
363                    ]
364                  }
365                ]
366              },
367              {
368                "bullet": "Dash",
369                "counter": null,
370                "checkbox": null,
371                "term": [
372                  {
373                    "Text": "term two"
374                  }
375                ],
376                "content": [
377                  {
378                    "Paragraph": [
379                      {
380                        "Text": "the second definition, which is soft-wrapped across two lines"
381                      }
382                    ]
383                  }
384                ]
385              },
386              {
387                "bullet": "Dash",
388                "counter": null,
389                "checkbox": null,
390                "term": [
391                  {
392                    "Italic": [
393                      {
394                        "Text": "marked up"
395                      }
396                    ]
397                  },
398                  {
399                    "Text": " term"
400                  }
401                ],
402                "content": [
403                  {
404                    "Paragraph": [
405                      {
406                        "Text": "definitions hold inline markup"
407                      }
408                    ]
409                  }
410                ]
411              }
412            ]
413          }
414        }
415      ],
416      "children": []
417    },
418    {
419      "heading": {
420        "level": 1,
421        "todo": null,
422        "priority": null,
423        "title": [
424          {
425            "Text": "Multi-paragraph items"
426          }
427        ],
428        "tags": [],
429        "properties": {
430          "entries": []
431        },
432        "id": null,
433        "custom_id": null
434      },
435      "content": [
436        {
437          "List": {
438            "kind": "Unordered",
439            "items": [
440              {
441                "bullet": "Dash",
442                "counter": null,
443                "checkbox": null,
444                "term": null,
445                "content": [
446                  {
447                    "Paragraph": [
448                      {
449                        "Text": "an item whose body has two paragraphs"
450                      }
451                    ]
452                  },
453                  {
454                    "Paragraph": [
455                      {
456                        "Text": "the second paragraph, indented under the bullet"
457                      }
458                    ]
459                  }
460                ]
461              },
462              {
463                "bullet": "Dash",
464                "counter": null,
465                "checkbox": null,
466                "term": null,
467                "content": [
468                  {
469                    "Paragraph": [
470                      {
471                        "Text": "a plain sibling"
472                      }
473                    ]
474                  }
475                ]
476              }
477            ]
478          }
479        }
480      ],
481      "children": []
482    }
483  ]
484}