summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-14 09:45:25 +0100
committerGitHub <noreply@github.com>2024-02-14 08:45:25 +0000
commit8ed1eff7b5b76b72eef8e67ee9120e5d24925aa7 (patch)
tree0e4a22d7844afcc177094376c68b60d04fcd08e7 /crates
parent1f68e157259f1eb55b0eb22f06bb1b589d398971 (diff)
Fix text show-set regression (#3410)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/realize/process.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/typst/src/realize/process.rs b/crates/typst/src/realize/process.rs
index 73d5cc4f..a5acd8fc 100644
--- a/crates/typst/src/realize/process.rs
+++ b/crates/typst/src/realize/process.rs
@@ -129,7 +129,11 @@ fn verdict<'a>(
continue;
}
- if let Transformation::Style(transform) = &recipe.transform {
+ // Special handling for show-set rules. Exception: Regex show rules,
+ // those need to be handled like normal transformations.
+ if let (Transformation::Style(transform), false) =
+ (&recipe.transform, matches!(&recipe.selector, Some(Selector::Regex(_))))
+ {
// If this is a show-set for an unprepared element, we need to apply
// it.
if !prepared {