summaryrefslogtreecommitdiff
path: root/library/src/meta
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-22 18:25:29 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-22 18:25:29 +0100
commit8527517258cf62a2f229796cc3f118d8bf0494b6 (patch)
tree7662e90bcb9d610e63f4b1a9f1f12f84cb1f742a /library/src/meta
parent947522b71aa6220ce8f006bfab4700d6e3cb04f1 (diff)
Rename `desc` to `terms`
Diffstat (limited to 'library/src/meta')
-rw-r--r--library/src/meta/link.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/src/meta/link.rs b/library/src/meta/link.rs
index 60d57a5f..ebb7a7e9 100644
--- a/library/src/meta/link.rs
+++ b/library/src/meta/link.rs
@@ -13,12 +13,17 @@ use crate::text::TextNode;
/// ```
/// #show link: underline
///
+/// https://example.com \
/// #link("https://example.com") \
/// #link("https://example.com")[
/// See example.com
/// ]
/// ```
///
+/// ## Syntax
+/// This function also has dedicated syntax: Text that starts with `http://` or
+/// `https://` is automatically turned into a link.
+///
/// ## Parameters
/// - dest: Destination (positional, required)
/// The destination the link points to.