Explain how to get the location of an element returned by query (#2999)

This commit is contained in:
Malo 2023-12-18 17:01:55 +01:00 committed by GitHub
parent a821b48cf4
commit e8e797c18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@ use crate::introspection::Location;
/// retrieve the current document location with the [`locate`]($locate)
/// function.
///
/// You can get the location of the elements returned by `query` with
/// [`location`]($content.location).
///
/// # Finding elements
/// In the example below, we create a custom page header that displays the text
/// "Typst Academy" in small capitals and the current section title. On the