Annotate ORCID author badges with their profile links

This commit is contained in:
gloamxun committed 2026-10-19 21:37:17 +08:00
1 parent 05d7980561
commit 2076da8f21
8 files changed
+52 -10

No files matched your search

@@ -1156,6 +1156,9 @@ impl Parser {
self.link_depth = self.link_depth.saturating_add(1);
}
expanded::FrontendEventKind::LinkTarget { text, url } => {
if url.contains("orcid.org") {
self.document.orcid_urls.push(url.clone());
}
self.document.link_targets.insert(text.clone(), url.clone());
}
expanded::FrontendEventKind::LinkEnd => {