Type alias MarkedString

MarkedString: string | {
    language: string;
    value: string;
}

MarkedString can be used to render human readable text. It is either a markdown string or a code-block that provides a language and a code snippet. Note that markdown strings will be sanitized - that means html will be escaped.

Type declaration

  • language: string
  • value: string

Deprecated

This type is deprecated, please use MarkdownString instead.