From 5cf25874bc443dbc8bd9c717c3ac524ecf15e20d Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 18 Jul 2025 15:13:20 +0200 Subject: [PATCH] Materialize twice --- crates/typst-realize/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/typst-realize/src/lib.rs b/crates/typst-realize/src/lib.rs index b7a21e789..c0660af3e 100644 --- a/crates/typst-realize/src/lib.rs +++ b/crates/typst-realize/src/lib.rs @@ -555,6 +555,7 @@ fn prepare( // Copy style chain fields into the element itself, so that they are // available in rules. + elem.clone().materialize(styles.chain(map)); elem.materialize(styles.chain(map)); // If the element is locatable, create start and end tags to be able to find