Package-level declarations

Types

Link copied to clipboard

A content builder class for building and manipulating purely textual content.

Link copied to clipboard

A base utility class for building and manipulating content based on the text. This class can be extended to support more types of text-based content, e.g. text with attachments or some metadata.

Functions

Link copied to clipboard
fun TextContentBuilderBase<*>.numbered(startLineNumber: Int = 1, body: TextContentBuilderBase<*>.() -> Unit): TextContentBuilderBase<*>

Extension function for TextContentBuilder that adds line numbering to the content.

Link copied to clipboard
fun text(block: TextContentBuilder.() -> Unit): String

Builds a textual content using a provided builder block and returns it as a string.