Create a new RichString object from a string.
The string to convert to a RichString object.
Optional options: { Options for the conversion.
Optional format?: "html" | "rtf" | "markdown"Format of the source string. Default is 'rtf'.
Readonly htmlAn HTML representation of the content.
Readonly rtfAn RTF representation of the content.
Represents a formatted text string. The underlying implementation uses a macOS Attributed String (
NSAttributedString) object. Can be constructed from a plain string in RTF, HTML, or Markdown format.Example