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
}
},
]
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"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With