AtlatestRepositorysigil-org
1
# sigil-org3
A [Sigil](https://codeberg.org/sigil/sigil) library for parsing Org Mode text into SXML. Supports headlines, metadata, blocks, inline markup, tables, lists, links, and timestamps.5
## Features7
- **Headlines** -- nested levels, TODO/DONE/WAIT/NEXT keywords, priorities, tags8
- **Metadata** -- `#+TITLE:`, `#+AUTHOR:`, and other keywords9
- **Source blocks** -- `#+BEGIN_SRC` with language annotation10
- **Other blocks** -- quote, example, center11
- **Inline markup** -- bold, italic, code, verbatim, underline, strikethrough12
- **Links** -- with or without description text13
- **Lists** -- ordered, unordered, checkboxes14
- **Tables** -- with separator rows and header detection15
- **Timestamps** -- active and inactive16
- **Property drawers** -- key/value metadata on headlines18
## Usage20
Add `sigil-org` as a dependency in your `package.sgl`:22
```scheme23
(from-git url: "codeberg:sigil/sigil-org" package: "sigil-org")24
```26
Then parse Org text:28
```scheme29
(import (sigil org))31
;; Parse a string32
(define doc (org->sxml "* Hello World\nSome text."))34
;; Parse a file35
(define doc (org-file->sxml "notes.org"))36
```38
The result is an SXML document tree compatible with `(sigil sxml)`.40
## Dependencies42
- sigil-stdlib43
- sigil-peg44
- sigil-sxml46
## Building48
```bash49
sigil deps install50
sigil build51
sigil test52
```54
## License56
BSD-3-Clause