Hello @jwodder,
What you are describing is a dinkus by the way.
The dinkus. You know, the three asterisks beloved of a certain kind of fiction writer to split the chapter into some kind of sub-chapter.
If I was you, I would rephrase my question as you are potentially going down the path describing an XY Problem.
Something may already exist on Typst Universe.