Support the appendices environment

The appendices environment was reported as unsupported, so appendix sections
kept main-matter numbering. A body pass now replaces \begin{appendices} with a
blank-line-padded \appendix (so it becomes its own block and the sectioning pass
sees it) and drops \end{appendices}; the environment name counts as supported.

A preview test puts a section inside appendices and checks "1 Main" and
"A Extra" render with no warnings.
This commit is contained in:
gloamxun committed 2026-10-27 03:41:11 +08:00
1 parent 82c3e24d18
commit e53ce3b601
4 files changed
+37 -6

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 **1050 tests**:
The workspace currently passes **1051 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 439 |
| engine binary unit | 420 |
| engine binary unit | 421 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |