mirror of
https://github.com/typst/typst
synced 2025-08-13 22:57:56 +08:00
For completeness, add all value types accepted by selector constructor
This commit is contained in:
parent
09d35c8254
commit
f7070b57eb
@ -148,7 +148,9 @@ impl Selector {
|
||||
impl Selector {
|
||||
/// Turns a value into a selector. The following values are accepted:
|
||||
/// - An element function like a `heading` or `figure`.
|
||||
/// - A [string]($str) or [regular expression]($regex).
|
||||
/// - A `{<label>}`.
|
||||
/// - A [`location`].
|
||||
/// - A more complex selector like `{heading.where(level: 1)}`.
|
||||
#[func(constructor)]
|
||||
pub fn construct(
|
||||
|
Loading…
x
Reference in New Issue
Block a user