How to render tables in Slack

对着背影说爱祢 提交于 2020-04-07 06:46:31

问题


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



来源:https://stackoverflow.com/questions/59006831/how-to-render-tables-in-slack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!