Render acknowledgement environments as a heading

The acks, acknowledgments and acknowledgements environments were reported as
unsupported. A body pass now rewrites their \begin into an unnumbered
"Acknowledgments" \section* and drops the matching \end, and the environment
names count as supported so the preview warning stays empty.

A test wraps "Thanks." in \begin{acks}, then checks the heading and body text
render with no warnings and no leaked environment names.
This commit is contained in:
gloamxun committed 2026-10-27 02:24:23 +08:00
1 parent 0a4bc0ade5
commit 723b9e220f
4 files changed
+46 -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 **1027 tests**:
The workspace currently passes **1028 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 437 |
| engine binary unit | 398 |
| engine binary unit | 399 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |