MarkBooks v1.0

A self-contained document format for Markdown

MarkBooks packages Markdown pages and their assets into a single portable file. Open format. AI-native. Human-readable inside.

The Problem

Markdown is the native output of the AI era — every LLM produces it. But sharing a .md file with images is broken: paths fail, images get lost, you convert to PDF and lose editability. There is no self-contained, portable, human-readable document format between raw Markdown and exported PDF.

MarkBooks fixes this. A .mkb file is a ZIP archive containing Markdown files and their assets. At its simplest, it is a single index.md in a ZIP. At its most capable, it carries multi-chapter documents with illustrations, datasets, cryptographic signatures, and publication timestamps.

Format

Extension.mkb
MIME typeapplication/vnd.markant.markbook+zip
ContainerZIP (ISO/IEC 21320-1)
EncodingUTF-8
MarkdownCommonMark + wikilinks
Spec version1.0 · April 2026 · Draft
LicenceCC0 1.0 Universal

Structure

example.mkb (ZIP archive) ├── index.md ← entry point (required) ├── markbook.yaml ← metadata (optional) ├── pages/ ← additional Markdown pages │ ├── chapter-one.md │ └── chapter-two.md ├── assets/ ← images and media │ └── diagram.png ├── data/ ← supporting data │ └── measurements.csv └── signatures/ ← author signatures └── alice.sig

Only index.md is required. A valid MarkBook can be a single Markdown file in a ZIP.

Quick Example

The simplest possible MarkBook:

echo "# Hello, World

This is a MarkBook." > index.md
zip minimal.mkb index.md

That is a valid .mkb file. Open it in Markant or unzip it with any tool.

Principles

  1. Trivially implementable. A developer can build a reader in an afternoon.
  2. AI-generatable. An LLM can produce a valid MarkBook in one response.
  3. Human-readable inside. Unzip and you have plain Markdown.
  4. Self-contained. No network required. No external dependencies.
  5. Gracefully degrading. Readers render what they support; the rest stays visible as text.
  6. Open. CC0 licence. No fees. No proprietary tooling.

Comparison

Format Self-contained Human-editable AI-generatable Lightweight
PDFYesNoNoNo
EPUBYesNoNoNo
.docxYesRequires WordNoNo
Raw .mdNoYesYesYes
MarkBook (.mkb)YesYesYesYes

Advanced Features

Every feature beyond index.md in a ZIP is optional. A minimal reader ignores what it does not support. A full-featured reader can offer:

See the full specification for details on each feature.

Resources