diff --git a/crates/typst-realize/src/lib.rs b/crates/typst-realize/src/lib.rs index f80c9dc23..b7a21e789 100644 --- a/crates/typst-realize/src/lib.rs +++ b/crates/typst-realize/src/lib.rs @@ -405,6 +405,7 @@ fn visit_show_rules<'a>( let prev_outside = s.outside; s.outside &= content.is::(); s.engine.route.increase(); + s.engine.route.check_show_depth().at(content.span())?; visit_styled(s, realized, Cow::Owned(map), styles)?;