summaryrefslogtreecommitdiff
path: root/library/src/meta/link.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/meta/link.rs')
-rw-r--r--library/src/meta/link.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/meta/link.rs b/library/src/meta/link.rs
index 34304ea9..94328b00 100644
--- a/library/src/meta/link.rs
+++ b/library/src/meta/link.rs
@@ -2,6 +2,8 @@ use crate::prelude::*;
use crate::text::TextNode;
/// Link text and other elements to a destination.
+#[func]
+#[capable(Show, Finalize)]
#[derive(Debug, Hash)]
pub struct LinkNode {
/// The destination the link points to.
@@ -23,7 +25,7 @@ impl LinkNode {
}
}
-#[node(Show, Finalize)]
+#[node]
impl LinkNode {
fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> {
let dest = args.expect::<Destination>("destination")?;