EPUB Exporter
An Obsidian plugin that turns notes into a finished EPUB3 book. The trick is not the export but the model behind it: instead of piecing chapters together from folders, link lists or settings, the book note itself is the book. It carries the metadata in its frontmatter and an ordered series of embedded chapters (![[Kapitel]]) as its backbone — the spine. Because the chapters are real embeds, you see the whole book live in Obsidian's reading view while you write it. No separate preview window, no second truth.
Why this one
The starting point was a classic design trap: three plausible ways to define "what is a chapter" — a folder, a MOC link list, a frontmatter field — running against each other as competing modes. The resolution was to see them not as modes but as life stages of the same book: the book note is the one source (single source of truth); whether you export from it, consolidate it into a self-contained folder, or conversely import a folder as a book is decided by what you trigger the action on — not by a global switch. This one decision — derive the mechanism from the entry point, not from configuration — runs through the whole plugin and keeps it small.
Under the hood
The engine is deliberately dependency-free: at its core an EPUB is just XHTML plus CSS in a ZIP, and Obsidian renders Markdown to HTML itself anyway. So no heavy library is needed, only a small home-built ZIP writer and a DOM-to-XHTML conversion with graceful degradation — anything unknown is simplified, never aborted. Chapters can be reordered in the sidebar by dragging; the new order goes straight back into the book note's spine, so display, file and export never drift apart. The technical reference stays in the repository.
Beyond the browser
Repository