Skip to content
Ignacio Ferro Picón edited this page Oct 16, 2026 · 8 revisions

Postext Wiki

A programmable typesetter for the web.

Postext is a browser-native layout engine that brings the rules of print typesetting to the web. It takes enriched markdown with figures, tables, notes and citations, and sets it as a book or a magazine: columns that end level, no orphans or widows, hyphenation, floats, footnotes, running heads, a table of contents and an index. The same layout comes out as canvas, HTML, PDF, EPUB 3 or a 3D book.

It is built on @chenglou/pretext for DOM-free text measurement.


Start here

Writing and configuring

Using it from code

Internals and contributing


About this wiki

The doc pages (Introduction, Architecture, Configuration and its pages, Programmatic Usage and its pages, Document Format and its pages, Justification, Chinese, Japanese and Arabic layout, Comics, Composed Pages, Sandbox and its pages, Agent Skill, Command Line, WebMCP, Contributing) are generated from the English MDX in docs/ by apps/web/scripts/wiki/sync.ts. Edit the MDX, then run the script (see Development Setup). The other pages are written here by hand. The illustrated, multilingual version of the docs is at postext.dev/en/docs.

Clone this wiki locally