Clarify label name's pattern in doc (#3053)

Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
Leedehai 2024-01-04 10:06:55 -05:00 committed by GitHub
parent 2d1c1747f7
commit 9aeb63cafa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,8 @@ use crate::util::PicoStr;
/// ///
/// # Syntax /// # Syntax
/// This function also has dedicated syntax: You can create a label by enclosing /// 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 /// Currently, labels can only be attached to elements in markup mode, not in
/// code mode. This might change in the future. /// code mode. This might change in the future.