Resolve cleveref cref lists

\cref and \Cref were unsupported, so documents using cleveref leaked the
command. The reference pass now scans both commands, splits the comma-separated
keys, looks each up in the existing label and kind tables, and joins them as
"Section 1 and Figure 1"; \Cref capitalises each kind and unknown keys become
"??".

A preview test labels a section and a figure and checks both forms with no
warnings.
This commit is contained in:
gloamxun committed 2026-10-27 03:46:11 +08:00
1 parent 25c7659afe
commit a451df620c
4 files changed
+79 -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 **1052 tests**:
The workspace currently passes **1053 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 439 |
| engine binary unit | 422 |
| engine binary unit | 423 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |