mirror of
https://github.com/typst/typst
synced 2025-06-08 13:16:24 +08:00
Add comment
This commit is contained in:
parent
db5c3539b0
commit
1ac74d472d
@ -56,6 +56,8 @@ pub(crate) fn handle_link(
|
||||
Destination::Position(p) => *p,
|
||||
Destination::Location(loc) => {
|
||||
if let Some(named_dest) = gc.loc_to_named.get(loc) {
|
||||
// If a named destination has been registered, it's already guaranteed to
|
||||
// not point to an excluded page.
|
||||
fc.annotations.push(
|
||||
LinkAnnotation::new(
|
||||
rect,
|
||||
|
Loading…
x
Reference in New Issue
Block a user