Skip to content

Commit

Permalink
fix telegram markdown (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun authored May 13, 2024
1 parent 9ede8d9 commit 82c9fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alert/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ var (
{{.Msg | escapeMarkdown}}
{{with .Error}}*Reason*
{{.Error | escapeMarkdown}}{{ end }}
{{.Error | escapeMarkdown}}
{{ if .CtxFields }}*Context Fields*:{{ range $Key, $Val := .CtxFields }}
{{else}}{{ end }}{{ if .CtxFields }}*Context Fields*:{{ range $Key, $Val := .CtxFields }}
*{{$Key | escapeMarkdown}}*: {{$Val | escapeMarkdown}}{{ end }}{{ end }}
`,
}
Expand Down

0 comments on commit 82c9fba

Please sign in to comment.