Skip to content

Instantly share code, notes, and snippets.

@kenjij
Created December 28, 2016 08:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenjij/11bf203764f6db1fd397b1c662581923 to your computer and use it in GitHub Desktop.
Save kenjij/11bf203764f6db1fd397b1c662581923 to your computer and use it in GitHub Desktop.
Slack message formatting to be used with their API

Slack Message Formatting Reference

Text Formatting

Basic Styles

Making a *bold statement.*
Emphasis with _italic text._
Let's ~strike out~ post this message.

Making a bold statement.
Emphasis with italic text.
Let's strike out post this message.

New Line

Do, or do not.\nThere's no try.

Do, or do not.
There's no try.

Code

Use the `chat.postMessage` method.

Use the chat.postMessage method.

```\n{\n  "text":"Slack test message."\n}\n```
{
  "text": "Slack test message."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment