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.
Wrap text in single asterisks (*like this*) to get italics like this.
Wrap text in double asterisks (**like this**) to get bold text like this.
Wrap text in double tildes (~~like this~~) to get strikethrough (crossed out) text like this.
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).
To add a heading, start the line with the # character like this: # This is your heading text.
To visually separate sections of your message, add a horizontal line with three dashes (---). You'll see a horizontal divider in your Slack message.
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.
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 1 | Header 2 |
|---|---|
content 1 | content 2 |
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).
To add a line break and a new line, select Enter in the Message field.
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.
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 element | Behavior in Slack |
|---|---|
| Rendered as a bold heading block. |
| Rendered as bold inline text. |
| Horizontal divider. |
| Preformatted code block. |
| Preformatted code block with language hint. The language tag is ignored. |
| Quoted text block. |
| Unordered (bulleted) list. |
| Ordered (numbered) list. |
| Bold text. |
| Italic text. |
| Strikethrough (crossed out) text. |
| Inline monospace code. |
| Clickable hyperlink. |
| 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. |