Accept starred equation tags

\tag* was not parsed: the tag extraction only looked for \tag, so the starred
form stayed in the formula. Both the row pass and the block pass now try
\tag*{...} before \tag{...}, so the tag text is removed from the math and used
as the equation tag.

A preview test tags an equation with \tag*{A} and checks the glyph appears with
no warnings and no leaked command.
This commit is contained in:
gloamxun committed 2026-10-27 03:30:57 +08:00
1 parent a5871774ec
commit 3b28ea6693
4 files changed
+38 -8

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
PDF opt-in with `?engine=route-d`; flat `/preview` and project previews now
prefer route-D with a v1 fallback). 1048 workspace tests are green and no oracle
prefer route-D with a v1 fallback). 1049 workspace tests are green and no oracle
fixture is ignored. Preview JSON also carries a `warnings` array naming
environments route-D cannot lay out and control words that survived layout, so
unsupported source is reported instead of being silently typeset.