Hello,
I would like to have inline headings but with my preferred formatting style (one linebreak before and after a heading) I can’t seem to make it work.
#show heading.where(level: 4): it => strong(it.body) + [ ]
// Note: This is how I like my formatting
==== This is not inline with
the following text.
// For it to work it has to look like this
==== This is inline with
the following text.
An empty line introduces a paragraph break on its own; you’ll need to either remove the newline, or at least put a comment or something else in it:
==== This is not inline with
//
the following text.
Keeping the completely empty line unfortunately won’t work.
PS: Could you maybe try to revise your post’s title so others can find it easier in the future? The question guidelines recommend a complete question:
Good titles are questions you would ask your friend about Typst.