Hey. This is a breaking change. You should look at any breaking changes in the new version before switching to it.
#let current-chapter-title() = context {
let headings = query(heading.where(level: 1).before(here()))
if headings == () { panic("Aucun titre trouvé") }
headings.last().body
}
= Heading
#current-chapter-title()