Merge pull request #240 from prometheus/slackfix
Allow markdown in Slack 'text' field
This commit is contained in:
commit
170906482d
|
@ -491,7 +491,7 @@ func (n *Slack) Notify(ctx context.Context, as ...*types.Alert) error {
|
|||
Text: tmplHTML(n.conf.Text),
|
||||
Fallback: tmplText(n.conf.Fallback),
|
||||
Color: tmplText(n.conf.Color),
|
||||
MrkdwnIn: []string{"fallback", "pretext"},
|
||||
MrkdwnIn: []string{"fallback", "pretext", "text"},
|
||||
}
|
||||
req := &slackReq{
|
||||
Channel: tmplText(n.conf.Channel),
|
||||
|
|
Loading…
Reference in New Issue