summaryrefslogtreecommitdiff
path: root/crates/typst-pdf
diff options
context:
space:
mode:
authortingerrr <me@tinger.dev>2024-02-29 09:51:56 +0100
committerGitHub <noreply@github.com>2024-02-29 08:51:56 +0000
commit5a03c818c8b595c9bb62613c8da6d7464ccff05c (patch)
tree21cd4d3664dac88f43350b14ceb227b716f295ec /crates/typst-pdf
parentedf957399c59332f1472321e72106d31fc9f610b (diff)
Add `depth` and `offset` field to `heading` (#3038)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'crates/typst-pdf')
-rw-r--r--crates/typst-pdf/src/outline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-pdf/src/outline.rs b/crates/typst-pdf/src/outline.rs
index a060c175..e247c322 100644
--- a/crates/typst-pdf/src/outline.rs
+++ b/crates/typst-pdf/src/outline.rs
@@ -117,7 +117,7 @@ struct HeadingNode<'a> {
impl<'a> HeadingNode<'a> {
fn leaf(element: &'a Packed<HeadingElem>) -> Self {
HeadingNode {
- level: element.level(StyleChain::default()),
+ level: element.resolve_level(StyleChain::default()),
// 'bookmarked' set to 'auto' falls back to the value of 'outlined'.
bookmarked: element
.bookmarked(StyleChain::default())