summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLeedehai <18319900+Leedehai@users.noreply.github.com>2024-08-05 06:04:35 -0400
committerGitHub <noreply@github.com>2024-08-05 10:04:35 +0000
commit1f8128111825410fdfcea056448fb37fe92a589e (patch)
tree34693f7fe3b3565d2acf93aeae21c03513b9b134 /crates
parentd06a26e3d868a5e80686f692fba8e5bbd5104922 (diff)
Fix the show rule effect for bibliography heading level (#4622)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/model/bibliography.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst/src/model/bibliography.rs b/crates/typst/src/model/bibliography.rs
index ed593d45..71616616 100644
--- a/crates/typst/src/model/bibliography.rs
+++ b/crates/typst/src/model/bibliography.rs
@@ -217,7 +217,7 @@ impl Show for Packed<BibliographyElem> {
}) {
seq.push(
HeadingElem::new(title)
- .with_level(Smart::Custom(NonZeroUsize::ONE))
+ .with_depth(NonZeroUsize::ONE)
.pack()
.spanned(self.span()),
);