Skip to content

Books written in Markdown, read on the web.

One manuscript gives a printable PDF, an EPUB 3 file and a web edition.

Récit book puts a book together from Markdown files: an entry that lists the chapters, one file per chapter beside it. Chapters, figures and notes are numbered, cross-references and the index are resolved once, and the same book is read on the web, exported to EPUB 3 and, with the print chain, to PDF.

A chapter, read on the web

The chapter below comes from examples/book-novella; the whole book is under Read, and its source under One source.

Lorem IpsumOpen fullscreen

Chapter 1

Lorem ipsum

Lorem ipsum dolor sit amet.

— Consectetur, Adipiscing

Lorem ipsum dolor sit amet1, consectetur adipiscing elit, as the map shows (Figure 1.1). Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

An abstract map: three rounded hills above a winding line
Figure 1.1 The Lorem valley, seen from the ridge.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam2.

Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti.

Notes

  1. Duis aute irure dolor in reprehenderit in voluptate velit esse.

    ↩
  2. Excepteur sint occaecat cupidatat non proident.

    ↩

Start a book

  1. Create a book

    10 s

    recit init --format book writes book.md and two Lorem chapters beside it.

    TerminalBash
    npx recit init book.md --format book
  2. Read it with live reload

    1 min

    recit dev serves the web edition and reloads it when the entry, a chapter or an image changes.

    TerminalBash
    npx recit dev book.md
  3. Check, build and export

    30 s

    recit validate assembles the whole book; recit build writes the web edition, and recit export --to epub the EPUB.

    TerminalBash
    npx recit validate book.md && npx recit build book.md && npx recit export --to epub book.md

The full syntax is specified on docs.recit.dev.