mirror of
https://github.com/typst/typst
synced 2025-08-13 22:57:56 +08:00
Simplify phrasing for selector docs
This commit is contained in:
parent
a99cbb3e70
commit
1efb339f16
@ -37,13 +37,12 @@ pub use crate::__select_where as select_where;
|
|||||||
|
|
||||||
/// A filter for selecting elements within the document.
|
/// A filter for selecting elements within the document.
|
||||||
///
|
///
|
||||||
/// You can construct a selector in the following ways:
|
/// To construct a selector you can:
|
||||||
/// - you can use an element [function]
|
/// - use an element [function]
|
||||||
/// - you can filter for an element function with
|
/// - filter for an element function with [specific fields]($function.where)
|
||||||
/// [specific fields]($function.where)
|
/// - use a [string]($str) or [regular expression]($regex)
|
||||||
/// - you can use a [string]($str) or [regular expression]($regex)
|
/// - use a [`{<label>}`]($label)
|
||||||
/// - you can use a [`{<label>}`]($label)
|
/// - use a [`location`]
|
||||||
/// - you can use a [`location`]
|
|
||||||
/// - call the [`selector`] constructor to convert any of the above types into a
|
/// - call the [`selector`] constructor to convert any of the above types into a
|
||||||
/// selector value and use the methods below to refine it
|
/// selector value and use the methods below to refine it
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user