Create a new RichString object from a string.
The string to convert to a RichString object.
Optionaloptions: { format?: "rtf" | "html" | "markdown" }
Options for the conversion.
Optionalformat?: "rtf" | "html" | "markdown"Format of the source string. Default is 'rtf'.
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