mirror of
https://github.com/typst/typst
synced 2025-07-28 06:47:53 +08:00
Revert "Pay only for realization but not downstream"
This reverts commit 5e41d13dc23a959b9ff37d8a2e566d94d05ea0ca.
This commit is contained in:
parent
5e41d13dc2
commit
315a3f192e
@ -344,7 +344,6 @@ fn visit_show_rules<'a>(
|
||||
styles: StyleChain<'a>,
|
||||
) -> SourceResult<bool> {
|
||||
// Determines whether and how to proceed with show rule application.
|
||||
let keep_tags = content.can::<dyn Locatable>() || content.label().is_some();
|
||||
let Some(Verdict { prepared, mut map, step }) = verdict(s.engine, content, styles)
|
||||
else {
|
||||
return Ok(false);
|
||||
@ -401,9 +400,6 @@ fn visit_show_rules<'a>(
|
||||
let (start, end) = tags.unzip();
|
||||
if let Some(tag) = start {
|
||||
visit(s, s.store(TagElem::packed(tag)), styles)?;
|
||||
if !keep_tags {
|
||||
s.sink.pop();
|
||||
}
|
||||
}
|
||||
|
||||
let prev_outside = s.outside;
|
||||
@ -419,9 +415,6 @@ fn visit_show_rules<'a>(
|
||||
// Push end tag.
|
||||
if let Some(tag) = end {
|
||||
visit(s, s.store(TagElem::packed(tag)), styles)?;
|
||||
if !keep_tags {
|
||||
s.sink.pop();
|
||||
}
|
||||
}
|
||||
|
||||
Ok(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user