Parenthesise tag text like LaTeX

\tag{B} stored the bare text and the renderer painted "B", while LaTeX draws
"(B)"; \tag* is the bare form. Tag extraction now wraps the non-starred argument
in parentheses and leaves the starred form alone, for both equation rows and
whole equations.

The existing tag tests expect "(B)"/"(C)", and a new preview test checks the
parentheses glyphs around "A" with no warnings.
This commit is contained in:
gloamxun committed 2026-10-27 03:33:21 +08:00
1 parent 3b28ea6693
commit c3aa4e9dad
4 files changed
+34 -12

No files matched your search

+2 -2
View File
@@ -14,12 +14,12 @@ cargo fmt --all -- --check
cargo test --workspace --offline
```
The workspace currently passes **1049 tests**:
The workspace currently passes **1050 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 439 |
| engine binary unit | 419 |
| engine binary unit | 420 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |