Revert "Don't check depth"

This reverts commit 6d80fd250772e0e15ed7a4b337793ded0737ce0a.
This commit is contained in:
Laurenz 2025-07-18 15:16:44 +02:00
parent 6873ea4745
commit 34f17f695b

View File

@ -405,6 +405,7 @@ fn visit_show_rules<'a>(
let prev_outside = s.outside;
s.outside &= content.is::<ContextElem>();
s.engine.route.increase();
s.engine.route.check_show_depth().at(content.span())?;
visit_styled(s, realized, Cow::Owned(map), styles)?;