diff options
Diffstat (limited to 'library/src/meta')
| -rw-r--r-- | library/src/meta/document.rs | 6 | ||||
| -rw-r--r-- | library/src/meta/link.rs | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/library/src/meta/document.rs b/library/src/meta/document.rs index 77181671..fbb62b6b 100644 --- a/library/src/meta/document.rs +++ b/library/src/meta/document.rs @@ -27,11 +27,9 @@ impl LayoutRoot for DocumentNode { } Ok(Document { - metadata: Metadata { - title: styles.get(Self::TITLE).clone(), - author: styles.get(Self::AUTHOR).clone(), - }, pages, + title: styles.get(Self::TITLE).clone(), + author: styles.get(Self::AUTHOR).clone(), }) } } diff --git a/library/src/meta/link.rs b/library/src/meta/link.rs index e7d217e7..52163371 100644 --- a/library/src/meta/link.rs +++ b/library/src/meta/link.rs @@ -25,10 +25,6 @@ impl LinkNode { #[node(Show, Finalize)] impl LinkNode { - /// A destination the text should be linked to. - #[property(skip, referenced)] - pub(crate) const DEST: Option<Destination> = None; - fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { let dest = args.expect::<Destination>("destination")?; Ok(match dest { @@ -61,6 +57,6 @@ impl Show for LinkNode { impl Finalize for LinkNode { fn finalize(&self, realized: Content) -> Content { - realized.styled(Self::DEST, Some(self.dest.clone())) + realized.styled(Meta::DATA, vec![Meta::Link(self.dest.clone())]) } } |
