Annotate href labels with PDF link targets

This commit is contained in:
gloamxun committed 2026-10-19 21:33:26 +08:00
1 parent 88646c9453
commit 05d7980561
7 files changed
+68 -35

No files matched your search

@@ -1155,6 +1155,9 @@ impl Parser {
expanded::FrontendEventKind::LinkStart => {
self.link_depth = self.link_depth.saturating_add(1);
}
expanded::FrontendEventKind::LinkTarget { text, url } => {
self.document.link_targets.insert(text.clone(), url.clone());
}
expanded::FrontendEventKind::LinkEnd => {
self.link_depth = self.link_depth.saturating_sub(1);
}