Using #outline is it possible to show <from page> - <to page>

I’m talking about table of contents and chapter (level 1. Only level 1 used).

outline will show:
<chap 1> … 1
<chap 2> … 8
<chap 3> … 22

I want to get:
<chap 1> … 1 - 7
<chap 2> … 8 - 21
<chap 3> … 22 - 27 (27 is last page of <chap 3>).

Is this possible?

First, a couple housekeeping things.

Can you please edit the title of your post to be a question (see here):

The title of your question should make clear what your post is about. Good titles are questions you would ask your friend about Typst.

Also, if you look again at the way your post renders you’ll see that #outline turned into something else. Please use backticks (`#outline`) for inline code and triple backticks (``` multi-line code```) for proper formatting. This is covered here.


Finally, to your question.
Is it correct that you want this outline to show all chapters (level 1 headings)? And the way you want them displayed is to include their start and end pages?
Reading your question a couple more times these points seem obvious, but my first time through I thought you were asking for something else so I wanted to clarify.

To add to housekeeping things, it is not clear to me what the intended behavior is, namely how the last page should be determined. Are you okay with adding some kind of marker manually at the end of each chapter, or should the last page be detected automatically?

If it should be automatic, how should this behave if there are multiple blank pages at the end of a chapter, should it include the last page non-blank or the last blank page? Can the chapters have supplementary content after the last page, but before the start of the next chapter (like images, exercises, etc)?