-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Description
Rocket.Chat version: latest (v0.35.0)
It seems that markdown is not supported in the "pretext" field on a message attachment. Example JSON:
{
"attachments": [
{
"color": "good",
"fields": [
{
"title": "Requested by",
"value": "Normal Paulk",
"short": true
},
{
"title": "Duration",
"value": "00:02:03",
"short": true
},
{
"title": "Build Definition",
"value": "ConsumerAddressModule",
"short": true
}
],
"pretext": "Build <https://fabrikam-fiber-inc.visualstudio.com/web/build.aspx?pcguid=5023c10b-bef3-41c3-bf53-686c4e34ee9e&builduri=vstfs%3a%2f%2f%2fBuild%2fBuild%2f3|ConsumerAddressModule_20150407.2> succeeded",
"mrkdwn_in": [
"pretext"
],
"fallback": "Build ConsumerAddressModule_20150407.2 succeeded"
}
]
}This is example JSON that TFS (Team Foundation Server) uses to post messages to channels. Based on previous pull requests, "slack" style webhook JSON schema is supported. However, the text in the pretext field seems to be excluded from markdown rendering (i.e. the link in the pretext field above does not get rendered as a link), even though this JSON is describing that there is markdown included in the pretext field via mrkdwn_in.
Also it seems that the "fallback" field is commented out in the message attachment template.
Thanks.
Reactions are currently unavailable