Discord Markdown Guide

Bold Text #

This is done with two asterisks (**) on both sides of the text selected.
For example: **The apple is sweet**.

bold text typing

This would make the text appear as:

bold text display

Italicized Text #

This is done with one asterisk (*) or underscore (_) on both sides of text selected. For example: *The apple is sweet* or _The apple is sweet_.

italicized text typing 1
4 - Discord Markdown Guide

This would make the text appear as:

italicized text display

Strike-through Text #

This is done with two tildes (~~) on both sides of text selected. For example: ~~The apple is sweet~~.

strike through text typing

This would make the text appear as:

strike through text display

Inline Code Blocks #

Using one backtick (`) you can create an inline code block. They don’t take up a line on their own compared to Code Blocks themselves. You can’t style them though unlike full Code Blocks.

inline codeblock typing

This would make the text appear as:

inline codeblock display

Spoilers #

You can create a spoiler by surrounding your message with two vertical bars (||) if you want to hide sensitive information. People can reveal spoilers by tapping or clicking on it. You can rehide spoilers in a channel by re-entering the channel. In addition to hiding text, the spoiler tag will also cover up any media sent until the recipient chooses to reveal it.
You can also combine spoilers with other markdown formatting.

spoilers 1

This is what an unrevealed spoiler looks like in chat:

s2 - Discord Markdown Guide

It can be revealed by clicking or tapping on the spoiler. This is what a revealed spoiler looks like in chat:

s3 - Discord Markdown Guide

You can adjust the settings for showing spoilers in User Settings -> Text & Images. The On servers I moderate option will display spoiler content only on servers in which you have the Manage Messages permission.

s4 - Discord Markdown Guide

Quote and Quoteblocks #

You can create a quote by starting your message with a “Greater than” character (>) followed by a space.
This will make the line have a small grey bar on the left and the text being indent, similar to how an embed looks.

Any new line with text that doesn’t start with a > will be displayed normally.
To change this, either start every new line with a > and space or start the first line with three > (>>>) and a space to have the complete text after it as a quote.

Single quote (Only indents the line starting with >)

quote 1

Would make the text appear as this:

quote 2

Starting the line with three > however…

quote 3

…will make the entire text after it a quote:

quote 4

Code Blocks #

This is how you make basic multi-line code blocks:

multi-line codeblock

Syntax Highlighting #

If you really want to spruce up your code blocks, you can denote a specific language for syntax highlighting, by typing the name of the language you want the code block to expect right after the first three backticks beginning your code block. An example:

image - Discord Markdown Guide

There are many different languages in place of Markdown that Discord’s syntax highlighting support. Each different language has its own approach to highlight-able syntax. For a full list: https://highlightjs.org/static/demo/. Note that you won’t be able to view syntax highlighting on the mobile app.

asciidoc #

image 1 - Discord Markdown Guide

autohotkey #

image 2 - Discord Markdown Guide

bash #

image 3 - Discord Markdown Guide

coffeescript #

image 4 - Discord Markdown Guide

cpp (C++) #

image 5 - Discord Markdown Guide

cs #

image 6 - Discord Markdown Guide

css #

image 7 - Discord Markdown Guide

diff #

image 8 - Discord Markdown Guide

fix #

image 9 - Discord Markdown Guide

glsl #

image 10 - Discord Markdown Guide

ini #

image 11 - Discord Markdown Guide

json #

image 12 - Discord Markdown Guide

md #

image 13 - Discord Markdown Guide

ml #

image 14 - Discord Markdown Guide

prolog #

image 15 - Discord Markdown Guide

py #

image 16 - Discord Markdown Guide

tex #

image 17 - Discord Markdown Guide

xl #

image 18 - Discord Markdown Guide

xml #

image 19 - Discord Markdown Guide

yaml #

image 20 - Discord Markdown Guide

Powered by BetterDocs