summaryrefslogtreecommitdiff
path: root/library/src/meta
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-21 00:16:07 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-21 00:26:20 +0100
commitee732468c7487c81aa6470571077988b75d36ebb (patch)
treee0361bb75b8bbc3359b711f4009e165459d66248 /library/src/meta
parent15cd273c82a96128a63781981a4405fcd2b1e846 (diff)
Document text category
Diffstat (limited to 'library/src/meta')
-rw-r--r--library/src/meta/link.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/src/meta/link.rs b/library/src/meta/link.rs
index 501ccddb..60d57a5f 100644
--- a/library/src/meta/link.rs
+++ b/library/src/meta/link.rs
@@ -5,7 +5,9 @@ use crate::text::TextNode;
/// Link to a URL or another location in the document.
///
/// The link function makes its positional `body` argument clickable and links
-/// it to the destination specified by the `dest` argument.
+/// it to the destination specified by the `dest` argument. By default, links
+/// are not styled any different from normal text. However, you can easily apply
+/// a style of your choice with a show rule.
///
/// ## Example
/// ```
@@ -85,7 +87,7 @@ impl LinkNode {
fn field(&self, name: &str) -> Option<Value> {
match name {
- "url" => Some(match &self.dest {
+ "dest" => Some(match &self.dest {
Destination::Url(url) => Value::Str(url.clone().into()),
Destination::Internal(loc) => Value::Dict(loc.encode()),
}),