mirror of
https://github.com/typst/typst
synced 2025-06-08 05:06: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::Position(p) => *p,
|
||||||
Destination::Location(loc) => {
|
Destination::Location(loc) => {
|
||||||
if let Some(named_dest) = gc.loc_to_named.get(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(
|
fc.annotations.push(
|
||||||
LinkAnnotation::new(
|
LinkAnnotation::new(
|
||||||
rect,
|
rect,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user