独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
D

drnachio/postext

A programmable typesetter for the web

装之前:没有可直接复制的命令 · 许可证 MIT · 链接可访问

第一步:这条暂时没有可执行的下一步,可先看原仓库 https://github.com/drnachio/postext

在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
取自该仓库的安装命令
npm install postext

解析自我们于 2026-10-26 抓取的该仓库 README;我们未执行过。

这条是仓库自己写的安装方式,不是 MCP 客户端配置,所以不生成 JSON。
配置项的键名以你的客户端为准:客户端与 CLI
★ 数取值
16 ★ · drnachio/postext · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-10-25 · 最近见到 2026-11-14 · 共见到 24 次 · 被 2 个来源列出
评分构成
综合分 203 · 16 ★ · 2 个来源 · repo
安装
npm install postext
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是 npm install postext。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。
它适合谁 / 用来做什么?
我们把它归在这些标签下: Agent 技能、浏览器自动化。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 drnachio/postext;我们收录于 2026-10-25;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# Postext

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

A programmable typesetter for the web.
🌐 Website: postext.dev · 📖 Documentation: postext.dev/en/docs
Postext is a layout engine that bridges the centuries-old craft of print typesetting and the modern web. It takes semantic content — enriched markdown with referenced resources — and applies professional editorial layout rules to produce publication-grade output for HTML, PDF and EPUB.
Built on top of @chenglou/pretext for DOM-free text measurement.
## How It Works
Enriched Markdown Postext engine Output
───────────────── ───────────────────────── ─────────────
┌────────────────────────┐
# Heading │ │ HTML + CSS
Paragraph text... │ 1. Parse & structure │ ┌─► (web rendering)
More text with a ───► │ 2. Measure (pretext) │ ───┤
:ref{id="fig"} and │ 3. Apply layout rules │ └─► PDF
a $formula$. │ 4. Compute geometry │ (print rendering)
│ │
└────────────────────────┘
Configuration files
(columns, rules, spacing)
1. Input. Enriched markdown with referenced resources: images, tables, figures, formulas, pull quotes. The content is semantic, not visual — it describes what to present, not how.
2. Engine. postext parses the content structure, calls pretext for pixel-perfect text measurement without touching the DOM, then runs the layout algorithm: column balancing, resource placement, typographic quality rules, reference systems. All driven by configuration files.
3. Output. Format-agnostic layout geometry — precise coordinates and dimensions for every element. Renderers translate this geometry to the target format: canvas for page images, HTML/CSS for the web, PDF for print, EPUB 3 for e-book readers, and a 3D book in the browser (Folio).
## Why postext?
### The gap between print and web
A professional typesetter — the person who lays out a magazine, a newspaper, or a book — applies dozens of rules that have been refined over centuries:
No orphans (a single line of a paragraph stranded at the top of a column).
No widows (a single line of a paragraph left behind at the bottom).
Balanced columns (roughly equal height across columns on a spread).
Text flowing around figures, pull quotes, and inset images.
Proper placement of footnotes at the bottom of the column where they are referenced.
Margin notes aligned with the paragraph that cites them.
Consistent and deliberate spacing around headings, block quotes, and figures.
Hyphenation that avoids rivers and excessive rag.
CSS gives you almost none of this.
column-count exists but is fragile — there is no control over resource placement within columns, no overflow awareness, and no cross-column orphan/widow prevention. There is no native concept of "flow text around an arbitrarily positioned obstacle." Multi-column editorial layouts on the web remain essentially hand-crafted, usually as static designs that break on different screen sizes.
The web has had responsive layout (flexbox, grid) for over a decade. What it has never had is responsive editorial layout — the kind where content reflows intelligently through columns, around images, past footnotes, obeying the rules that make text pleasant to read.
### A decade of trying
This problem is not new. The Content First project, started around 2014, was an early attempt to bring editorial layout quality to the web. I built column-based layouts, experimented with text flow algorithms, and ran into the same wall repeatedly: you cannot make good layout decisions without knowing exactly how much space text will occupy.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/drnachio-postext/)
来源
github · https://github.com/drnachio/postext
按领域浏览
Agent 技能, 浏览器自动化
Traction
16 ★
收录来源
2 个独立来源
收录于
今天

同类推荐

全部 420 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引