diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2024-01-04 10:06:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-04 15:06:55 +0000 |
| commit | 9aeb63cafaeea7f69dc9718fa92a5006ad08a31a (patch) | |
| tree | 9f78ad949872dfdb52b858a1ccb53b42c1b4797c /crates | |
| parent | 2d1c1747f7a7485f009e63ac17883b364fb027c4 (diff) | |
Clarify label name's pattern in doc (#3053)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/foundations/label.rs | 3 |
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. |
