Markdown in Discord

Stays close to the standard and adds marks of its own. Two underscores underline the text. In the standard, it would be bold.

What Discord adds

  • Underline: __Text__ underlines the text. In the standard, it would be bold.
  • Spoilers: ||Text|| hides the text until someone clicks it. This doesn’t work in code blocks.
  • Subtext: -# and a space at the start of a line set the line in small type.
  • Long quotes: >>> and a space before the first line turn several lines into one quote.

What's different or missing in Discord

Paragraph

Standard
↵ ↵

A blank line separates two paragraphs. A single line break isn’t enough: Markdown joins the two lines into one paragraph. For a line break inside a paragraph, put two spaces or a backslash (\) at the end of the line.

More on this

In HTML, the line break becomes a <br> and the paragraph a <p>. The original Markdown doesn't know the backslash, and some apps show it as a character. You can't see the two spaces, and some editors delete them when saving.

Markdown (click to edit)

This is the first paragraph.

After a blank line, the second one starts.

Result

This is the first paragraph.

After a blank line, the second one starts.

Different

The ↵ Enter key sends the message. Start a new line with ⇧ Shift + ↵ Enter.

Heading

Standard
#

A hash and a space at the start of a line make the line a heading. Each additional hash goes one level deeper.

More on this

There are six levels, from # to ######. They match the HTML elements <h1> to <h6>. In CommonMark, the space after the hash is required. Leave a blank line before a heading, or some apps won't recognize it.

Markdown (click to edit)

# Monday meeting

## Open items

Result

Monday meeting

Open items

Different

Discord knows three levels: #, ## and ###.

Bold

Standard
**or__

Two asterisks before and after a word make it bold. Two underscores (__bold__) do the same in the standard. Not every app knows this notation.

More on this

In HTML, this becomes <strong>. To make only part of a word bold, only the asterisks work reliably.

Markdown (click to edit)

The deadline is **Friday**.

Result

The deadline is Friday.

Different

Two asterisks work. Two underscores (__Text__) underline the text in Discord.

Task list

Standard
- [ ]

Square brackets after the hyphen make a checkbox. An x inside checks it off.

More on this

Task lists are part of GitHub Flavored Markdown (GFM). Between the empty brackets, there is exactly one space.

Not available

Image

Standard
![]()

You write an image like a link with an exclamation mark in front. The square brackets hold the description of the image, and the parentheses hold the URL of the image. If the image is on another website, the URL starts with https://.

More on this

The description becomes the alt attribute of the <img>. Screen readers read the description aloud, and it appears when the image doesn't load.

Not available

Table

Standard
|

Vertical bars separate the columns. The second row, made of hyphens, turns the first row into the header row. Without this header row, there is no table.

More on this

Tables are part of GitHub Flavored Markdown (GFM). The bars don't have to line up in the source text. Colons in the separator row align a column: :--- left, :---: center, ---: right. To show a vertical bar as a character in a cell, write it with a backslash: \|.

Not available

Horizontal rule

Standard
---or***or___

Three hyphens on a line of their own make a horizontal rule. Leave a blank line before it.

More on this

If the three hyphens sit directly under a line of text, Markdown turns that line into a second-level heading. With *** or ___, this doesn't happen. In HTML, this becomes an <hr>.

Not available

What works as in the standard