Markdown in Slack

Has a flavor of its own. One asterisk makes text bold, one underscore italic. Messages have no headings and no tables.

What to watch out for

  • Asterisks mean something else: *Text* is bold in Slack and italic in the standard.
  • Two ways of typing: In the normal message field, Slack converts the marks as you type. With the “Format messages with markup” setting, you only see the formatting after sending, and lists aren’t formatted automatically.
  • Pasted text: In markup mode, pasted Markdown stays normal text.
  • Canvases are a different editor: There you get headings and checklists through keyboard shortcuts.

What's different or missing in Slack

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.

Not available

Bold

Standard
**or__
Slack
*

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 (Slack) (click to edit)

The deadline is *Friday*.

Result

The deadline is Friday.

Different

One asterisk instead of two.

Italic

Standard
*or_
Slack
_

One asterisk before and after a word makes it italic. One underscore (_italic_) does the same in the standard. Not every app knows this notation.

More on this

In HTML, this becomes <em>. Three asterisks (***like this***) make text bold and italic at once. To keep an asterisk as a character, write it with a backslash: \*.

Markdown (Slack) (click to edit)

Please let me know _beforehand_.

Result

Please let me know beforehand.

Different

Only underscores (_italic_) work. In Slack, an asterisk means bold.

Strikethrough

Standard
~~or~
Slack
~

Two tildes before and after the text strike it through. On a US keyboard, you type the tilde with ⇧ Shift and the key left of 1. On a UK keyboard in Windows, press ⇧ Shift + #, the key next to ↵ Enter.

More on this

Strikethrough is part of the GitHub Flavored Markdown (GFM) extension and is missing from the original Markdown. GFM also accepts a single tilde (~). In some programs, such as Pandoc, it sets the text as subscript instead, so two tildes are safer. In HTML, this becomes <del>.

Markdown (Slack) (click to edit)

The meeting is on ~Tuesday~ Wednesday.

Result

The meeting is on Tuesday Wednesday.

Different

One tilde (~) instead of two.

List

Standard
-or*

A hyphen and a space at the start of a line make a list item. An asterisk (* ) does the same in the standard. Not every app knows this notation.

More on this

For a sub-level, indent the line until it sits under the text of the item above. With - , that is two spaces. In some apps, ⇥ Tab does the indenting. A second paragraph or a code block belongs to the item if you indent it just as far and leave a blank line before it. Leave a blank line before and after the list: without a blank line after it, the next line still belongs to the last item.

Markdown (click to edit)

- Send quote
- Schedule meeting
- Send invoice

Result

  • Send quote
  • Schedule meeting
  • Send invoice

Different

Start a list item with * or - and a space. In markup mode, Slack doesn't format lists automatically.

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

Slack shows the brackets as normal list text.

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

Upload images or drag them into the message field.

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

Typed bars stay as text.

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

The hyphens stay as text.

What works as in the standard