diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-01-22 14:24:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 13:24:14 +0000 |
| commit | 6fcc4322845482c1810c26ee7f6fc8f6fed20d7d (patch) | |
| tree | 93f20518774529d90d7f07b6de5122fe64218748 /crates/typst-library/src/model | |
| parent | b45f574703f674c962e8678b4af0aabe081216a1 (diff) | |
Don't link items if container is already linked (#5732)
Diffstat (limited to 'crates/typst-library/src/model')
| -rw-r--r-- | crates/typst-library/src/model/link.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/typst-library/src/model/link.rs b/crates/typst-library/src/model/link.rs index 5df6bead..24b746b7 100644 --- a/crates/typst-library/src/model/link.rs +++ b/crates/typst-library/src/model/link.rs @@ -1,7 +1,6 @@ use std::ops::Deref; use ecow::{eco_format, EcoString}; -use smallvec::SmallVec; use crate::diag::{bail, warning, At, SourceResult, StrResult}; use crate::engine::Engine; @@ -90,10 +89,10 @@ pub struct LinkElem { })] pub body: Content, - /// This style is set on the content contained in the `link` element. + /// A destination style that should be applied to elements. #[internal] #[ghost] - pub dests: SmallVec<[Destination; 1]>, + pub current: Option<Destination>, } impl LinkElem { |
