gpt4 book ai didi

markdown - 微软团队 : escaping underscores in text posting to webhook

转载 作者:行者123 更新时间:2023-12-03 13:37:40 24 4
gpt4 key购买 nike

我正在使用传入的 webhook 将 Azure 资源组列表发布到团队中的 channel 。

一些 Azure 资源组中有下划线,这些正在被解析并且两个下划线之间的文本是斜体的。从文档中我可以得知这是 Markdown 行为,但我无法使用 \ 来转义下划线(反斜杠)类似于您在 Markdown 中的做法。

发布带有下划线的文本以使其正确呈现的正确方法是什么?

(很高兴知道正在使用什么 Markdown 变体。)

示例有效载荷:

{
"text": "<br/><h1>Some text (some azure subscription id)</h1><br/>some text (more text): <br/>['resource_group_name_1', 'resource_group_name_2', 'resourcegroup-rg-foo-bar']<br/><br/>some text (more text): <br/>['resourcegroupname']<br/><br/>See <a href="https://someaccount.visualstudio.com/_git/reponame?path=%2FREADME.md">documentation</a> and <a href="https://someaccount.visualstudio.com/someproject/_build?definitionId=1234&_a=summary">sometext</a>."
}
resourcegroup-rg-foo-bar按原样显示,但 resource_group_name_1看起来像resourcegroupname1。

最佳答案

Cards 现在支持在部分级别禁用 Markdown。您可以设置 markdown为假。

详情here

示例

{
"@type": "MessageCard",
"@context": "https://schema.org/extensions",
"summary": "Office 365 Notification",
"title": "Office 365 Service Degradations",
"sections": [
{
"markdown": false,
"facts": [
{
"name": "Service Incident:",
"value": "ID"
},
{
"name": "Start time:",
"value": "check_disk_critical"
},
{
"name": "Service:",
"value": "SERVICENAME"
},
{
"name": "Description:",
"value": "MESSAGE"
}
],
"title": "Office 365 Service Problem"
}
]
}

关于markdown - 微软团队 : escaping underscores in text posting to webhook,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58598592/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com