mirror of
https://github.com/typst/typst
synced 2025-08-18 00:48:34 +08:00
Compare commits
1 Commits
964ceaf8c6
...
d752f6f1e7
Author | SHA1 | Date | |
---|---|---|---|
|
d752f6f1e7 |
@ -117,8 +117,6 @@ use crate::foundations::{func, Array, Context, LocatableSelector, Value};
|
|||||||
/// ]
|
/// ]
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// ## Retrieving a specific field
|
|
||||||
///
|
|
||||||
/// Frequently, you're interested in only one specific field of the resulting
|
/// Frequently, you're interested in only one specific field of the resulting
|
||||||
/// elements. In the case of the `metadata` element, the `value` field is the
|
/// elements. In the case of the `metadata` element, the `value` field is the
|
||||||
/// interesting one. You can extract just this field with the `--field`
|
/// interesting one. You can extract just this field with the `--field`
|
||||||
@ -136,12 +134,6 @@ use crate::foundations::{func, Array, Context, LocatableSelector, Value};
|
|||||||
/// $ typst query example.typ "<note>" --field value --one
|
/// $ typst query example.typ "<note>" --field value --one
|
||||||
/// "This is a note"
|
/// "This is a note"
|
||||||
/// ```
|
/// ```
|
||||||
///
|
|
||||||
/// ## Querying for a specific export target
|
|
||||||
///
|
|
||||||
/// In case you need to query a document when exporting for a specific target,
|
|
||||||
/// you can use the `--target` argument. Valid values are `paged`, and `html`
|
|
||||||
/// (if the [`html`]($html) feature is enabled).
|
|
||||||
#[func(contextual)]
|
#[func(contextual)]
|
||||||
pub fn query(
|
pub fn query(
|
||||||
engine: &mut Engine,
|
engine: &mut Engine,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user