How to remove a first-line indent of a paragraph after the centered text

#set par(first-line-indent: 1em, justify: true, leading: 1em)
#show par: set block(spacing: 1em)

#let pseudoheading(body) = {
  set align(center)
  set par(justify: false)
  smallcaps(body)
}

// --

= This is a regular heading

#lorem(20)

#lorem(20)

#heading(outlined: false)[This is another regular heading, though not outlined]

#lorem(20)

#lorem(20)

#pseudoheading[
  And this is a pseudoheading
]

#lorem(20)

#lorem(20)

Is there a way to remove the first-line indent of a paragraph after the psedoheading, so that it will be not like this:

                  And this is a pseudoheading

  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magnam aliquam quaerat.
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magnam aliquam quaerat.

but like this?

                  And this is a pseudoheading

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magnam aliquam quaerat.
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magnam aliquam quaerat.

The problem here is that you are inserting the pseudoheading’s paragraph verbatim, so Typst thinks it’s just yet another paragraph in the flow, meaning the next paragraph isn’t considered the “first” in a paragraph run (and only the first isn’t indented). Wrap it around a block to force a break in the flow, such that the next paragraph will no longer be indented:

#set par(first-line-indent: 1em, justify: true, leading: 1em)
#show par: set block(spacing: 1em)

#let pseudoheading(body) = {
  set align(center)
  set par(justify: false)
  block(smallcaps(body))  // <---- block()
}

// --

= This is a regular heading

#lorem(20)

#lorem(20)

#heading(outlined: false)[This is another regular heading, though not outlined]

#lorem(20)

#lorem(20)

#pseudoheading[
  And this is a pseudoheading
]

#lorem(20)

#lorem(20)

1 Like

That seems to be the opposite of what OP requested. indenta adds indentation, whereas OP is asking to remove.

Sorry, I misread itđŸ˜”