Expose route-D pages through a preview endpoint

This commit is contained in:
gloamxun committed 2026-10-20 21:15:35 +08:00
1 parent 12288b51ee
commit 875f8a7600
8 files changed
+151 -5

No files matched your search

+5
View File
@@ -562,3 +562,8 @@ boxes/glue, a simple page builder, serializable checkpoints and a page-local
edit demo. M1 adds the horizontal box/glue/penalty model, an item-stream Knuth-Plass-style
paragraph builder, CMR10 metrics extracted from `cmr10.tfm`, and a matching pdfTeX line-break fixture. The production v1 engine remains the
default until the new core reaches layout parity. See `docs/TEX_CORE.md`.
The first M7 service integration is available as `POST /api/route-d/preview`.
It accepts blank-line-separated plain text, lays it out with the route-D page
builder, and returns the v1-compatible preview shape plus per-page hashes and
SVG. The v1 `/preview` and project APIs are unchanged and remain the default.