How to get the current header depth?

Hey @kaimera, welcome to the forum! I’ve changed your question post’s title to better fit our guidelines: How to post in the Questions category

For future posts, please make sure your title is a question you’d ask to a friend about Typst. Also, don’t forget to add some tags related to your post! :wink: