fixed wrong header title being used
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 27s Details

This commit is contained in:
Sven Vogel 2024-07-11 14:58:18 +02:00
parent b46660e605
commit a7f4937f9e
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@
if headers-before.len() > 0 { if headers-before.len() > 0 {
header-title = headers-before.last().body header-title = headers-before.last().body
} else { } else {
let headers-after = query(selector(heading.where(numbering: "1.", level: 1)).after(here())) let headers-after = query(selector(heading.where(numbering: "1.1.1", level: 1)).after(here()))
if headers-after.len() > 0 { if headers-after.len() > 0 {
header-title = headers-after.first().body header-title = headers-after.first().body