RichText

sealed interface RichText

Represents a rich formatted text. It can be either a plain text (RichTextPlain), a group of rich texts (RichTextGroup) or any of RichTextEntity subtypes.

See also

Inheritors

Properties

Link copied to clipboard
abstract val html: String

Rich HTML style representation of this RichText.

Link copied to clipboard
abstract val markdown: String

Rich Markdown style representation of this RichText.

Link copied to clipboard
abstract val rawText: String

Plain (unformatted) text of this RichText. For RichTextEntitys without an inner RichText it falls back to the most meaningful textual representation: alternative text for custom emojis, the expression for mathematical expressions and an empty string for anchors.