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