Consume multicols wrappers

A multicols environment was unsupported, so a template wrapping its body in
\begin{multicols}{2} leaked the wrapper and its count. A body pass now strips the
begin form (optional arguments and the column count) and the matching end, and
marks both environment names as supported; the body lays out at the full
single-column measure because the engine has no column balancing.

A preview test wraps two paragraphs in multicols{2} and checks both render with
no warnings and no leaked command.
This commit is contained in:
gloamxun committed 2026-10-27 03:52:30 +08:00
1 parent 59ba5ac247
commit f71a12573e
4 files changed
+71 -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 **1054 tests**:
The workspace currently passes **1055 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 439 |
| engine binary unit | 424 |
| engine binary unit | 425 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |