

Use it in most Block Kit text objects by specifying a type of mrkdwn. Text objects contain a text field that can be formatted using a simple markup language called mrkdwn.

You shouldn't HTML entity-encode the entire text, as only the specific characters shown above will be decoded for display in Slack. Slack uses &, as control characters for special parsing in text objects, so they must be converted to HTML entities if they're not used for their parsing purpose: Advanced formatting with special parsingįirst, it's important to know that there are some characters in text strings that must be escaped.For user instructions on text formatting in Slack clients, consult this help center article.

These are developer instructions covering content posted to Slack via APIs. These instructions are also handy if you are retrieving messages and want to understand how to interpret the formatting syntax. This reference guide explains all of the mrkdwn formatting options available to use in text objects. These text objects can be left as unformatted plain_text, or formatted with mrkdwn to create useful visual highlights or avail of syntax to trigger special parsing. The Block Kit elements that form the layouts for these surfaces frequently use text objects to insert all kinds of content. Tip: If you prefer to always format your messages with markup, you can set a message formatting preference.App surfaces - such as messages, modals, or Home tabs - can contain all types of textual treasures. When using Slack on your desktop, you can also format your messages with markup.Īdd 1 and a period, then press Space in front of text:Īdd an asterisk, then press Space in front of text: If you’d like, you can adjust your preferences to start a new line with just the Enter key. Tip: To start a new line, press Shift Enter. You can add multiple formatting options to the same text and see exactly how the message looks before you send it. Select the text formatting icon or highlight the text you'd like to format to choose an option. You can use the formatting toolbar in the message field, or use markup and surround text with special characters. Formatting helps add detail and clarity to your messages in Slack.
