-->

How to render tables in Slack

2020-04-29 16:35发布

问题:

I have a slack application that responds with formatted data in mrkdwn but it would be nice to have the information presented in table form like so

Am trying to implement this but cant quite find how to format this message. The only close solution i have is taking a screen grab of the table and sending it instead but that affects the applications response time. Any help would be appreciated thanks

回答1:

Slack has no built-in support to render tables in messages.

Your workaround options are:

  • Draw table with chars in the message using a monospace font (Example)

  • Draw table with chars and upload as plain text snippet with files.upload

  • Render table as image and attach to a message or upload as image