From 9aeb63cafaeea7f69dc9718fa92a5006ad08a31a Mon Sep 17 00:00:00 2001 From: Leedehai <18319900+Leedehai@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:06:55 -0500 Subject: [PATCH] Clarify label name's pattern in doc (#3053) Co-authored-by: Laurenz --- crates/typst/src/foundations/label.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/typst/src/foundations/label.rs b/crates/typst/src/foundations/label.rs index 91ab572d4..53914c358 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.