Discord markdown preview
Discord preview
Server update
Hello, Discord! This is italic, underlined, and crossed out.
Say hi to @user, @role, and #channel.
Event time: <t:1893456000:F> · <t:1893456000:R>
A single-line quote
Small supporting text
Inline
const answer = 42 and a .const greeting = 'hello Discord' console.log(greeting)
Success Warning Error
Discord formatting reference
Every common message syntax in one place. Copy the pattern, then replace its placeholder text or ID.
Text styles
Wrap text to add emphasis.
- Bold
**text**Strong emphasis - Italic
*text* or _text_Either marker works - Bold italic
***text***Combine both styles - Underline
__text__Underline text - Strikethrough
~~text~~Cross out text - Spoiler
||text||Click to reveal
Structure
Organize longer messages and announcements.
- Headers
# H1 · ## H2 · ### H3Start a new line - Subtext
-# textSmall supporting text - Bulleted list
- item or * itemA space is required - Numbered list
1. itemA space is required - Nested list
- itemIndent with two spaces - Quote
> text or >>> textSingle or multi-line
Code and links
Preserve text, add colors, or link cleanly.
- Inline code
`text` or ``text``Single or double backticks - Code block
``` code ```Preserves spacing - Syntax colors
```languageAdd a language label - ANSI colors
```ansiUse ANSI escape codes - Masked link
[label](https://...)Clickable label - No link embed
<https://...>Suppresses the preview - Escape markdown
\*literal asterisks\*Show formatting marks
Discord references
Use IDs for exact Discord targets.
- User mention
<@userId>Mention a user - Role mention
<@&roleId>Mention a role - Channel mention
<#channelId>Link to a channel - Timestamp
<t:unix:style>Timezone-aware time - Custom emoji
<:name:emojiId>Use an emoji by ID