Ebooks

FormatExtensionSpec
EPUB.epubEPUB 3 — a ZIP container with HTML chapters + OPF metadata

An EPUB chapter rendered as flowed text through the shared HTML pipeline

EPUB

Three views, cycled with Tab:

  • Read (default) — one chapter at a time via the shared HTML rendering pipeline (same html2text driver as the standalone HTML viewer). n / p step forward / back through the spine; the status line shows ch X/Y. Each rendered chapter is cached at the current width so stepping back is instant; a terminal resize re-renders only the visible chapter. <img> tags with empty / missing alt get a fallback image: <basename> label. Cover-style chapters (almost no text + at least one image) render the first image as ASCII inline, so peek book.epub opens on the cover.
  • TOC — the raw ZIP file tree. Useful for inspecting cover images, stylesheets, or the OPF / NCX metadata files. Recursive peek with Enter opens any selected entry.
  • Info — Dublin Core metadata from the OPF: title, author (dc:creator), language, publisher, date, identifier, description, plus spine length.

Print mode walks every chapter in spine order separated by blank lines, so peek book.epub | less renders the whole book.

Other ebook containers (MOBI, AZW3, FB2) are not yet supported.