Preview environment

function escapeMarkdown

export declare function escapeMarkdown(text: string, options?: EscapeMarkdownOptions): string;

Escapes any Discord-flavored markdown in a string.

Parameters

text: string
Content to escape
optional
options?: EscapeMarkdownOptions
Options for escaping the markdown