From e8e797c18b43559d3dad23452dc48b60d8097729 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Mon, 18 Dec 2023 17:01:55 +0100 Subject: [PATCH] Explain how to get the location of an element returned by `query` (#2999) --- crates/typst/src/introspection/query.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/typst/src/introspection/query.rs b/crates/typst/src/introspection/query.rs index 76c9216f..7b7d581c 100644 --- a/crates/typst/src/introspection/query.rs +++ b/crates/typst/src/introspection/query.rs @@ -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