mirror of
https://github.com/typst/typst
synced 2025-07-01 01:32:52 +08:00
Clarify label name's pattern in doc (#3053)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
parent
2d1c1747f7
commit
9aeb63cafa
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user