Try it free

Slack Connector Markdown reference

  • Latest Dynatrace
  • Reference
  • 3-min read
  • Published Jun 09, 2026

Although you can use Markdown formatting in your messages, Slack displays them using its own block layout. Not all formatting translates directly. See the Limitations section for supported elements.

Syntax

Italics

Wrap text in single asterisks (*like this*) to get italics like this.

Bold

Wrap text in double asterisks (**like this**) to get bold text like this.

Strikethrough

Wrap text in double tildes (~~like this~~) to get strikethrough (crossed out) text like this.

Code

  • Wrap text in backticks (`like this`) to get monospace (code) text like this.

  • Wrap text in triple backticks (```like this```) to show a code block (multiple lines of code text).

Headings

To add a heading, start the line with the # character like this: # This is your heading text.

Horizontal line

To visually separate sections of your message, add a horizontal line with three dashes (---). You'll see a horizontal divider in your Slack message.

Lists

Each line of an unordered (bulleted) list starts with an asterisk (*):

* Line 1
* Line 2

You can also use a dash (-):

- Line 1
- Line 2

An ordered (numbered) list starts with a number and a period (1.) followed by a space and then your text:

1. The first line of my procedure.
2. The second line of my procedure.
3. The third line of my procedure.

Tables

To add a table, define the headers, the column formatting row, and then the rows of data you want to display.

| Header 1 | Header 2 |
| --- | --- |
| content 1 | content 2 |
Header 1Header 2

content 1

content 2

Links

To link to a website, use this format:

[Example text label](https://www.example.com)

Here's a link to the [Dynatrace website](https://www.dynatrace.com).

Line break

To add a line break and a new line, select Enter in the Message field.

Limitations

Slack doesn't natively support Markdown, so Dynatrace converts your Markdown-formatted messages to Slack Blocks. This means you can use only a subset of Markdown formatting options. The following table lists which elements are supported and how they're displayed in Slack.

Message length

Send short-formatted messages to Slack and use attachments for DQL results. Messages above 25,000 characters may be declined, truncated, or modified by the Slack API.

Markdown elementBehavior in Slack

# Heading 1 or ## Heading 2

Rendered as a bold heading block.

### H3 through ###### H6

Rendered as bold inline text.

  • ---
  • ___
  • ***

Horizontal divider.

```code block```

Preformatted code block.

```language
code
```

Preformatted code block with language hint. The language tag is ignored.

> blockquote

Quoted text block.

  • - item
  • * item
  • + item

Unordered (bulleted) list.

1. item
2. item

Ordered (numbered) list.

  • **bold**
  • __bold__

Bold text.

  • *italic*
  • _italic_

Italic text.

~~strikethrough~~

Strikethrough (crossed out) text.

`inline code`

Inline monospace code.

[text](url)

Clickable hyperlink.

![alt text](url)

Rendered as a clickable link. Images are not embedded in Slack blocks; the alt text is used as link text.

Tables

Slack supports only one two-column table with a maximum of 10 fields.

Related topics

  • Get started with Slack Connector
  • Slack Connector message examples
Related tags
Dynatrace Platform