松弛部分块:Markdown预格式化的长字符串问题

时间:2019-04-12 20:46:47

标签: slack-api

在使用Lego ...时,我的意思是Block Kit构建器,我需要使用markdown的“```”语法发送一些预格式化的数据,问题是当它遇到长而无间隔的字符串(例如网址)显示为松弛状态时格式中断。通过应用程序/网络应用程序发送消息显示正常,这与阻止工具生成器隔离。

我尝试使用verbatim属性,但是没有用。

第一个块显示错误,第二个块由于存在空格并且没有长字而正确显示

[
    {
        "type": "section",
        "text": {
            "type": "mrkdwn",
            "text": "```I_love_oat_cake_croissant_jujubes_tiramisu_pudding_pastry_sugar_plum_I_love._Apple_pie_powder_bear_claw_croissant_candy_muffin_gummi_bears.```"
        }
    },
    {
        "type": "section",
        "text": {
            "type": "mrkdwn",
            "text": "```I love oat cake croissant jujubes tiramisu pudding pastry sugar plum I love. Apple pie powder bear claw croissant candy muffin gummi bears.```"
        }
    }
]

我希望它能模仿在应用程序上输入数据时用户输入将显示的内容,这在必要时会打断长字,但实际上,该块向左移动并切断了一些数据。

Here is an example in both the builder and the application

1 个答案:

答案 0 :(得分:0)

当前从4/15开始:这是一个已知的错误,所以我所能做的就是等待。他们没有提供列出此类已知问题的面向公众的网站,但我已通过电子邮件将其跟踪,并希望该问题尽快得到解决,我将更新此答案。