Skip to content

Commit

Permalink
slack: Add markdown support for text and pretext
Browse files Browse the repository at this point in the history
Add markdown support for text and pretext in slack cards.
Fixes #839

Signed-off-by: Roi Dayan <[email protected]>
  • Loading branch information
roidayan committed Aug 15, 2017
1 parent d5d4151 commit 48318d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions errbot/backends/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,8 @@ def send_card(self, card: Card):
if card.fields:
attachment['fields'] = [{'title': key, 'value': value, 'short': True} for key, value in card.fields]

attachment['mrkdwn_in'] = ['text', 'pretext']

data = {
'text': ' ',
'channel': to_channel_id,
Expand Down

0 comments on commit 48318d1

Please sign in to comment.