问题描述
我有一个松弛的应用程序,该应用程序以mrkdwn中的格式化数据进行响应,但是最好以表形式显示信息,就像这样
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
推荐答案
Slack不内置支持在邮件中呈现表.
Slack has no built-in support to render tables in messages.
您的解决方法选项是:
-
使用等宽字体(示例)
使用字符绘制表格并使用files.upload
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
这篇关于如何在Slack中呈现表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!