Keep hyperref command labels

\hyperref[label]{text}, \hyperlink{name}{text} and \hypertarget{name}{text}
were unsupported and leaked as text. A text-stage pass now drops the link
machinery and keeps the visible label, accepting the optional [label] argument
of \hyperref and the braced target of the other two; internal PDF destinations
are not modelled.

A preview test uses all three forms and checks "the intro", "linked" and
"anchor" with no warnings and no leaked command names.
This commit is contained in:
gloamxun committed 2026-10-27 02:00:35 +08:00
1 parent 6c6963cac7
commit 5fbcc34ddd
4 files changed
+86 -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 **1020 tests**:
The workspace currently passes **1021 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 437 |
| engine binary unit | 391 |
| engine binary unit | 392 |
| server integration | 63 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |