summaryrefslogtreecommitdiff
path: root/crates/typst-library/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-12-08 19:36:04 +0100
committerGitHub <noreply@github.com>2024-12-08 18:36:04 +0000
commit4729d3d3bdf52268d143b9fe0ba6b097eae32bf8 (patch)
tree9620bd55a3479ddc810cb3c6fbf7eccd66e1f839 /crates/typst-library/src
parent67ef6066f40c6503471217600f9873774db394c0 (diff)
Fix language-dependant figure caption separator in outline (#5550)
Diffstat (limited to 'crates/typst-library/src')
-rw-r--r--crates/typst-library/src/model/figure.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-library/src/model/figure.rs b/crates/typst-library/src/model/figure.rs
index e871fbeb..fd843ee5 100644
--- a/crates/typst-library/src/model/figure.rs
+++ b/crates/typst-library/src/model/figure.rs
@@ -308,6 +308,7 @@ impl Synthesize for Packed<FigureElem> {
// Fill the figure's caption.
let mut caption = elem.caption(styles);
if let Some(caption) = &mut caption {
+ caption.synthesize(engine, styles)?;
caption.push_kind(kind.clone());
caption.push_supplement(supplement.clone());
caption.push_numbering(numbering.clone());