summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst/src/foundations/label.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst/src/foundations/label.rs b/crates/typst/src/foundations/label.rs
index 91ab572d..53914c35 100644
--- a/crates/typst/src/foundations/label.rs
+++ b/crates/typst/src/foundations/label.rs
@@ -26,7 +26,8 @@ use crate::util::PicoStr;
///
/// # Syntax
/// This function also has dedicated syntax: You can create a label by enclosing
-/// its name in angle brackets. This works both in markup and code.
+/// its name in angle brackets. This works both in markup and code. A label's
+/// name can contain letters, numbers, `_`, `-`, `:`, and `.`.
///
/// Currently, labels can only be attached to elements in markup mode, not in
/// code mode. This might change in the future.