Why does my header code no longer work in Typst 0.13?

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()
1 Like