Creates a new markdown string with the given value.
Optional, initial value.
Optional, Specifies whether ThemeIcons are supported within the MarkdownString.
The markdown string.
Indicates that this markdown string is from a trusted source. Only trusted
markdown supports links that execute commands, e.g. [Run it](command:myCommandId).
Indicates that this markdown string can contain ThemeIcons, e.g. $(zap).
Appends and escapes the given string to this markdown string.
Plain text.
Appends the given string 'as is' to this markdown string. When supportThemeIcons is true, ThemeIcons in the value will be iconified.
Markdown string.
Appends the given string as codeblock using the provided language.
A code snippet.
An optional language identifier.
友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
The MarkdownString represents human-readable text that supports formatting via the markdown syntax. Standard markdown is supported, also tables, but no embedded html.
Rendering of theme icons via the
$(<name>)-syntax is supported when thesupportThemeIconsis set totrue.