From 715f9fb0a5b5242c405e2c9277596fad7509e0db Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 4 Apr 2023 23:27:51 +0200 Subject: [PATCH] Locatable selectors --- library/src/meta/counter.rs | 23 ++++++++--------- library/src/meta/query.rs | 21 +++------------- library/src/prelude.rs | 5 ++-- src/eval/cast.rs | 16 +++++++++--- src/model/styles.rs | 50 +++++++++++++++++++++++++++++++++++-- 5 files changed, 76 insertions(+), 39 deletions(-) diff --git a/library/src/meta/counter.rs b/library/src/meta/counter.rs index 5ad9b48d4..d771168d4 100644 --- a/library/src/meta/counter.rs +++ b/library/src/meta/counter.rs @@ -276,10 +276,11 @@ use crate::prelude::*; pub fn counter( /// The key that identifies this counter. /// - /// - If this is the [`page`]($func/page) function, counts through pages. - /// - If this is any other element function, counts through its elements. /// - If it is a string, creates a custom counter that is only affected by - /// manual updates. + /// manual updates, + /// - If this is a `{