buildOudsAnnotatedBodyText

Creates an OudsAnnotatedBodyText using a builder DSL.

Example:

buildOudsAnnotatedBodyText {
withStrong {
withColor(color = highlightColor) { append("Important update") }
}
append(", ")
withStrikethrough {
append("old information")
}
append(", see details ")
withLink(link = OudsLinkAnnotation.Url("https://example.com/details")) { append("here") }
append(".")
}

Return

The constructed annotated body text.

Parameters

builder

Lambda with receiver for building the annotated string.