Reuse route-D page checkpoints in project previews
This commit is contained in:
1 parent
fe7fd68321
commit
ea69301804
5 files changed
+139
-12
No files matched your search
+7
-5
@@ -303,10 +303,12 @@ deliberately open rather than approximated:
|
||||
- **M7**: `POST /api/route-d/preview`, `/api/route-d/pdf` and
|
||||
`/api/route-d/edit/{unit}` expose route-D pages, PDF export and edit diff. The
|
||||
project preview can opt in with `POST /api/projects/{id}/preview?engine=route-d`;
|
||||
`route_d::latex_preview_json` strips the preamble/body wrapper and hands the
|
||||
document body to the same route-D paragraph parser. The v1 semantic pipeline
|
||||
remains the default fallback. LaTeX-to-route-D semantic mapping is still a
|
||||
subset, the project preview recomputes rather than reusing edit checkpoints,
|
||||
and there is no editor toggle or pixel comparison yet.
|
||||
`route_d::project_preview_json` strips the preamble/body wrapper and keeps a
|
||||
project-scoped `(paragraphs, Engine)` session. An unchanged source returns
|
||||
`changedPages: []` and `recomputedPages: 0`; a single-paragraph edit goes
|
||||
through `Engine::edit` and reports the changed/recomputed pages, while
|
||||
structural edits fall back to a full layout. The v1 semantic pipeline remains
|
||||
the default fallback. LaTeX-to-route-D semantic mapping is still a subset, and
|
||||
there is no editor toggle UI or pixel comparison yet.
|
||||
- `\middle` does not scale with its enclosing delimiter; math delimiters are
|
||||
scaled glyphs rather than TeX delimiter variants.
|
||||
Reference in new issue
Block a user