From d446cde4fa2f10c753092761c1ec7e2083512720 Mon Sep 17 00:00:00 2001 From: "Y.D.X." <73375426+YDX-2147483647@users.noreply.github.com> Date: Mon, 28 Jul 2025 17:39:13 +0800 Subject: [PATCH] Miscellaneous minor docs improvements (#6651) Co-authored-by: Laurenz --- .../src/introspection/counter.rs | 4 +- crates/typst-library/src/layout/page.rs | 9 +++++ crates/typst-library/src/model/figure.rs | 37 ++++++++++++++++++- crates/typst-library/src/text/mod.rs | 6 +++ docs/reference/library/symbols.md | 3 ++ 5 files changed, 56 insertions(+), 3 deletions(-) diff --git a/crates/typst-library/src/introspection/counter.rs b/crates/typst-library/src/introspection/counter.rs index f6083303d..c7d26040c 100644 --- a/crates/typst-library/src/introspection/counter.rs +++ b/crates/typst-library/src/introspection/counter.rs @@ -412,9 +412,11 @@ impl Counter { /// - If it is a string, creates a custom counter that is only affected /// by manual updates, /// - If it is the [`page`] function, counts through pages, - /// - If it is a [selector], counts through elements that matches with the + /// - If it is a [selector], counts through elements that match the /// selector. For example, /// - provide an element function: counts elements of that type, + /// - provide a [`where`]($function.where) selector: + /// counts a type of element with specific fields, /// - provide a [`{