withStrong

DSL helper for applying strong (bold/emphasized) formatting to a block of text.

This is the recommended way to add strong formatting as it automatically manages the annotation stack.

Example:

buildOudsAnnotatedHelperText {
append("Password must be ")
withStrong {
append("at least 8 characters")
}
append(" long")
}

Return

The result of the block.

Parameters

block

The lambda that appends the text to be formatted as strong.