Skip to content
Math & Text escapeMarkdown

$escapeMarkdown — Adds a backslash before * _ ~ | > ` so a user text is shown as typed and not formatted

Adds a backslash before `* _ ~ ` | > \` so a user text is shown as typed and not formatted.

Syntax

$escapeMarkdown[text]

Parameters

  • text (text, required) — The text.

Return Value

  • string.

Usage

$escapeMarkdown[*a*] → "\\*a\\*"

Example

$sendMessage[$escapeMarkdown[*a*]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.