# OrgSwift A dependency-free Swift library that renders a practical subset of [org-mode](https://orgmode.org) to sanitized HTML. Pure Foundation — no SwiftUI, WebKit, UIKit, or third-party packages. Originally extracted from the hand-rolled renderer in the Hutch iOS client so it could be shared across apps, and since rebuilt around an element tree: org is parsed once into a document model, and each output format walks it. See [ARCHITECTURE.md](ARCHITECTURE.md). ## Supported syntax Headings (with trailing `:tags:`), paragraphs, ordered/unordered lists (with arbitrary-depth nesting, wrapped lines, and `[ ]`/`[x]`/`[-]` task checkboxes), description lists (`term :: definition` → `
`), multi-paragraph list items, tables (with `:---:` alignment), `#+begin_src` / `example` / `quote` / `center` / `verse` / `export` blocks and `#+begin_` special blocks, `#+TITLE`/`#+AUTHOR`/`#+DATE` metadata, `#+CAPTION`/`#+ATTR_HTML`/`#+NAME` figures, org links and images (`[[file:x.png]]` → ``, `[[dest][label]]` → link, `[[id:target]]` → `#target`), horizontal rules, comments, timestamps (`<2024-01-15 Mon>`, inactive, times, and ranges → `