diff options
| author | tingerrr <me@tinger.dev> | 2024-02-29 09:51:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-29 08:51:56 +0000 |
| commit | 5a03c818c8b595c9bb62613c8da6d7464ccff05c (patch) | |
| tree | 21cd4d3664dac88f43350b14ceb227b716f295ec /crates/typst-pdf | |
| parent | edf957399c59332f1472321e72106d31fc9f610b (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.rs | 2 |
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()) |
