From 7897e86bccc1e6f510b28bc40ea1700029f41b5d Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 16 Jul 2025 11:54:43 +0200 Subject: [PATCH 1/2] Restore timing scopes for native show rules (#6616) --- crates/typst-realize/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/typst-realize/src/lib.rs b/crates/typst-realize/src/lib.rs index 87df940e4..f3f071505 100644 --- a/crates/typst-realize/src/lib.rs +++ b/crates/typst-realize/src/lib.rs @@ -374,9 +374,11 @@ fn visit_show_rules<'a>( } // Apply a built-in show rule. - ShowStep::Builtin(rule) => rule - .apply(&output, s.engine, chained) - .map(|content| content.spanned(output.span())), + ShowStep::Builtin(rule) => { + let _scope = typst_timing::TimingScope::new(output.elem().name()); + rule.apply(&output, s.engine, chained) + .map(|content| content.spanned(output.span())) + } }; // Errors in show rules don't terminate compilation immediately. We just From 5661c20580584d86897d139cdeffd6fb1a9a6d5c Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 16 Jul 2025 18:15:49 +0200 Subject: [PATCH 2/2] Slightly improve selector docs (#6544) --- crates/typst-library/src/foundations/selector.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/crates/typst-library/src/foundations/selector.rs b/crates/typst-library/src/foundations/selector.rs index 8f264a813..b8e34eb95 100644 --- a/crates/typst-library/src/foundations/selector.rs +++ b/crates/typst-library/src/foundations/selector.rs @@ -37,13 +37,12 @@ pub use crate::__select_where as select_where; /// A filter for selecting elements within the document. /// -/// You can construct a selector in the following ways: -/// - you can use an element [function] -/// - you can filter for an element function with -/// [specific fields]($function.where) -/// - you can use a [string]($str) or [regular expression]($regex) -/// - you can use a [`{