Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slack Block Kit ordered and unordered lists?

I'm experimenting with the Slack Block Kit, that supports markdown syntax. I'm trying to insert a numbered or bulleted list into the editor and can't seem to figure out how that works. Is there any way to achieve this?

Here is an example payload:

{
    "blocks": [
        {
            "type": "section",
            "text": {
                "type": "mrkdwn",
                "text": "1  asjdfljasd 1 asdfkjasdf " <- should be a numbered list
            }
        },
    ]
like image 641
Xen_mar Avatar asked Jul 26 '26 03:07

Xen_mar


1 Answers

Slack's templates for Block Kit had an unordered list. They used the unicode character • (hex 0x2022) instead of markdown. Markdown does not appear to work in blocks for lists.

"text": {
  "type": "mrkdwn",
  "text": "• Item 1\n• Item 2\n• Item 3"
}

Ordered lists would need you to type in the numbers unfortunately:

"text": {
  "type": "mrkdwn",
  "text": "1. Item 1\n2. Item 2\n3. Item 3"
}
like image 94
Fammy Avatar answered Jul 30 '26 09:07

Fammy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!