Support footnotemark and footnotetext

\footnotemark and \footnotetext were unsupported, so deferring a note body was
impossible. The footnote numbering pass now selects among \footnote,
\footnotemark and \footnotetext (longest name first so the prefix cannot win):
\footnotemark advances the counter, emits the numbered reference and records an
empty note for the number; \footnotetext fills that pending note with its body
and leaves no text in the line; the remaining text is appended once.

A test pairs a mark and its text in one paragraph, checks the page carries
"(1)" and "Deferred note." with no warnings, and that neither command leaks.
This commit is contained in:
gloamxun committed 2026-10-27 01:58:22 +08:00
1 parent 53a299bd58
commit 6c6963cac7
4 files changed
+74 -17

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 **1019 tests**:
The workspace currently passes **1020 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 437 |
| engine binary unit | 390 |
| engine binary unit | 391 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |