{"action":"created","comment":{"url":"https://api.github.com/repos/errbotio/errbot/pulls/comments/69369015","id":69369015,"diff_hunk":"@@ -555,11 +555,15 @@ def send_card(self, card: Card):\n         if isinstance(card.to, RoomOccupant):\n             card.to = card.to.room\n         to_humanreadable, to_channel_id = self._prepare_message(card)\n-        attachment = {}\n+        attachment = {\n+            'mrkdwn_in': [],\n+        }\n         if card.summary:\n             attachment['pretext'] = card.summary\n+            attachment['mrkdwn_in'].append('pretext')","path":"errbot/backends/slack.py","position":10,"original_position":10,"commit_id":"f5ac8932edc4ba34110c28b95e681ac99ad85947","original_commit_id":"f5ac8932edc4ba34110c28b95e681ac99ad85947","user":{"login":"gbin","id":975564,"avatar_url":"https://avatars.githubusercontent.com/u/975564?v=3","gravatar_id":"","url":"https://api.github.com/users/gbin","html_url":"https://github.com/gbin","followers_url":"https://api.github.com/users/gbin/followers","following_url":"https://api.github.com/users/gbin/following{/other_user}","gists_url":"https://api.github.com/users/gbin/gists{/gist_id}","starred_url":"https://api.github.com/users/gbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbin/subscriptions","organizations_url":"https://api.github.com/users/gbin/orgs","repos_url":"https://api.github.com/users/gbin/repos","events_url":"https://api.github.com/users/gbin/events{/privacy}","received_events_url":"https://api.github.com/users/gbin/received_events","type":"User","site_admin":false},"body":"Then it is slack markdown, no errbot mardown, can we convert it correctly ?","created_at":"2016-07-02T00:27:46Z","updated_at":"2016-07-02T00:27:46Z","html_url":"https://github.com/errbotio/errbot/pull/802#discussion_r69369015","pull_request_url":"https://api.github.com/repos/errbotio/errbot/pulls/802","_links":{"self":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/comments/69369015"},"html":{"href":"https://github.com/errbotio/errbot/pull/802#discussion_r69369015"},"pull_request":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/802"}}},"pull_request":{"url":"https://api.github.com/repos/errbotio/errbot/pulls/802","id":75373613,"html_url":"https://github.com/errbotio/errbot/pull/802","diff_url":"https://github.com/errbotio/errbot/pull/802.diff","patch_url":"https://github.com/errbotio/errbot/pull/802.patch","issue_url":"https://api.github.com/repos/errbotio/errbot/issues/802","number":802,"state":"open","locked":false,"title":"Add slack mrkdwn_in support for cards","user":{"login":"harlowja","id":970458,"avatar_url":"https://avatars.githubusercontent.com/u/970458?v=3","gravatar_id":"","url":"https://api.github.com/users/harlowja","html_url":"https://github.com/harlowja","followers_url":"https://api.github.com/users/harlowja/followers","following_url":"https://api.github.com/users/harlowja/following{/other_user}","gists_url":"https://api.github.com/users/harlowja/gists{/gist_id}","starred_url":"https://api.github.com/users/harlowja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harlowja/subscriptions","organizations_url":"https://api.github.com/users/harlowja/orgs","repos_url":"https://api.github.com/users/harlowja/repos","events_url":"https://api.github.com/users/harlowja/events{/privacy}","received_events_url":"https://api.github.com/users/harlowja/received_events","type":"User","site_admin":false},"body":"Slack api supports telling it that markdown\r\nmay be in the title and pretext; if it is not\r\ntold this then those do not get rendered correctly.","created_at":"2016-06-27T20:22:57Z","updated_at":"2016-07-02T00:27:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fca69e4904d155014a523ada590a523fb544dc9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/errbotio/errbot/pulls/802/commits","review_comments_url":"https://api.github.com/repos/errbotio/errbot/pulls/802/comments","review_comment_url":"https://api.github.com/repos/errbotio/errbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/errbotio/errbot/issues/802/comments","statuses_url":"https://api.github.com/repos/errbotio/errbot/statuses/f5ac8932edc4ba34110c28b95e681ac99ad85947","head":{"label":"harlowja:slack-mrkdwn_in","ref":"slack-mrkdwn_in","sha":"f5ac8932edc4ba34110c28b95e681ac99ad85947","user":{"login":"harlowja","id":970458,"avatar_url":"https://avatars.githubusercontent.com/u/970458?v=3","gravatar_id":"","url":"https://api.github.com/users/harlowja","html_url":"https://github.com/harlowja","followers_url":"https://api.github.com/users/harlowja/followers","following_url":"https://api.github.com/users/harlowja/following{/other_user}","gists_url":"https://api.github.com/users/harlowja/gists{/gist_id}","starred_url":"https://api.github.com/users/harlowja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harlowja/subscriptions","organizations_url":"https://api.github.com/users/harlowja/orgs","repos_url":"https://api.github.com/users/harlowja/repos","events_url":"https://api.github.com/users/harlowja/events{/privacy}","received_events_url":"https://api.github.com/users/harlowja/received_events","type":"User","site_admin":false},"repo":{"id":61930031,"name":"errbot","full_name":"harlowja/errbot","owner":{"login":"harlowja","id":970458,"avatar_url":"https://avatars.githubusercontent.com/u/970458?v=3","gravatar_id":"","url":"https://api.github.com/users/harlowja","html_url":"https://github.com/harlowja","followers_url":"https://api.github.com/users/harlowja/followers","following_url":"https://api.github.com/users/harlowja/following{/other_user}","gists_url":"https://api.github.com/users/harlowja/gists{/gist_id}","starred_url":"https://api.github.com/users/harlowja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harlowja/subscriptions","organizations_url":"https://api.github.com/users/harlowja/orgs","repos_url":"https://api.github.com/users/harlowja/repos","events_url":"https://api.github.com/users/harlowja/events{/privacy}","received_events_url":"https://api.github.com/users/harlowja/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harlowja/errbot","description":"Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.","fork":true,"url":"https://api.github.com/repos/harlowja/errbot","forks_url":"https://api.github.com/repos/harlowja/errbot/forks","keys_url":"https://api.github.com/repos/harlowja/errbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harlowja/errbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harlowja/errbot/teams","hooks_url":"https://api.github.com/repos/harlowja/errbot/hooks","issue_events_url":"https://api.github.com/repos/harlowja/errbot/issues/events{/number}","events_url":"https://api.github.com/repos/harlowja/errbot/events","assignees_url":"https://api.github.com/repos/harlowja/errbot/assignees{/user}","branches_url":"https://api.github.com/repos/harlowja/errbot/branches{/branch}","tags_url":"https://api.github.com/repos/harlowja/errbot/tags","blobs_url":"https://api.github.com/repos/harlowja/errbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harlowja/errbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harlowja/errbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/harlowja/errbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harlowja/errbot/statuses/{sha}","languages_url":"https://api.github.com/repos/harlowja/errbot/languages","stargazers_url":"https://api.github.com/repos/harlowja/errbot/stargazers","contributors_url":"https://api.github.com/repos/harlowja/errbot/contributors","subscribers_url":"https://api.github.com/repos/harlowja/errbot/subscribers","subscription_url":"https://api.github.com/repos/harlowja/errbot/subscription","commits_url":"https://api.github.com/repos/harlowja/errbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/harlowja/errbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/harlowja/errbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/harlowja/errbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/harlowja/errbot/contents/{+path}","compare_url":"https://api.github.com/repos/harlowja/errbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harlowja/errbot/merges","archive_url":"https://api.github.com/repos/harlowja/errbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harlowja/errbot/downloads","issues_url":"https://api.github.com/repos/harlowja/errbot/issues{/number}","pulls_url":"https://api.github.com/repos/harlowja/errbot/pulls{/number}","milestones_url":"https://api.github.com/repos/harlowja/errbot/milestones{/number}","notifications_url":"https://api.github.com/repos/harlowja/errbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harlowja/errbot/labels{/name}","releases_url":"https://api.github.com/repos/harlowja/errbot/releases{/id}","deployments_url":"https://api.github.com/repos/harlowja/errbot/deployments","created_at":"2016-06-25T06:23:32Z","updated_at":"2016-06-25T06:23:33Z","pushed_at":"2016-06-27T20:22:39Z","git_url":"git://github.com/harlowja/errbot.git","ssh_url":"git@github.com:harlowja/errbot.git","clone_url":"https://github.com/harlowja/errbot.git","svn_url":"https://github.com/harlowja/errbot","homepage":"http://errbot.io","size":4661,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"errbotio:master","ref":"master","sha":"3d9102e858dc64fd29530d09ca63a260f69a764e","user":{"login":"errbotio","id":15802630,"avatar_url":"https://avatars.githubusercontent.com/u/15802630?v=3","gravatar_id":"","url":"https://api.github.com/users/errbotio","html_url":"https://github.com/errbotio","followers_url":"https://api.github.com/users/errbotio/followers","following_url":"https://api.github.com/users/errbotio/following{/other_user}","gists_url":"https://api.github.com/users/errbotio/gists{/gist_id}","starred_url":"https://api.github.com/users/errbotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errbotio/subscriptions","organizations_url":"https://api.github.com/users/errbotio/orgs","repos_url":"https://api.github.com/users/errbotio/repos","events_url":"https://api.github.com/users/errbotio/events{/privacy}","received_events_url":"https://api.github.com/users/errbotio/received_events","type":"Organization","site_admin":false},"repo":{"id":4387547,"name":"errbot","full_name":"errbotio/errbot","owner":{"login":"errbotio","id":15802630,"avatar_url":"https://avatars.githubusercontent.com/u/15802630?v=3","gravatar_id":"","url":"https://api.github.com/users/errbotio","html_url":"https://github.com/errbotio","followers_url":"https://api.github.com/users/errbotio/followers","following_url":"https://api.github.com/users/errbotio/following{/other_user}","gists_url":"https://api.github.com/users/errbotio/gists{/gist_id}","starred_url":"https://api.github.com/users/errbotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errbotio/subscriptions","organizations_url":"https://api.github.com/users/errbotio/orgs","repos_url":"https://api.github.com/users/errbotio/repos","events_url":"https://api.github.com/users/errbotio/events{/privacy}","received_events_url":"https://api.github.com/users/errbotio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/errbotio/errbot","description":"Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.","fork":false,"url":"https://api.github.com/repos/errbotio/errbot","forks_url":"https://api.github.com/repos/errbotio/errbot/forks","keys_url":"https://api.github.com/repos/errbotio/errbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/errbotio/errbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/errbotio/errbot/teams","hooks_url":"https://api.github.com/repos/errbotio/errbot/hooks","issue_events_url":"https://api.github.com/repos/errbotio/errbot/issues/events{/number}","events_url":"https://api.github.com/repos/errbotio/errbot/events","assignees_url":"https://api.github.com/repos/errbotio/errbot/assignees{/user}","branches_url":"https://api.github.com/repos/errbotio/errbot/branches{/branch}","tags_url":"https://api.github.com/repos/errbotio/errbot/tags","blobs_url":"https://api.github.com/repos/errbotio/errbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/errbotio/errbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/errbotio/errbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/errbotio/errbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/errbotio/errbot/statuses/{sha}","languages_url":"https://api.github.com/repos/errbotio/errbot/languages","stargazers_url":"https://api.github.com/repos/errbotio/errbot/stargazers","contributors_url":"https://api.github.com/repos/errbotio/errbot/contributors","subscribers_url":"https://api.github.com/repos/errbotio/errbot/subscribers","subscription_url":"https://api.github.com/repos/errbotio/errbot/subscription","commits_url":"https://api.github.com/repos/errbotio/errbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/errbotio/errbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/errbotio/errbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/errbotio/errbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/errbotio/errbot/contents/{+path}","compare_url":"https://api.github.com/repos/errbotio/errbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/errbotio/errbot/merges","archive_url":"https://api.github.com/repos/errbotio/errbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/errbotio/errbot/downloads","issues_url":"https://api.github.com/repos/errbotio/errbot/issues{/number}","pulls_url":"https://api.github.com/repos/errbotio/errbot/pulls{/number}","milestones_url":"https://api.github.com/repos/errbotio/errbot/milestones{/number}","notifications_url":"https://api.github.com/repos/errbotio/errbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/errbotio/errbot/labels{/name}","releases_url":"https://api.github.com/repos/errbotio/errbot/releases{/id}","deployments_url":"https://api.github.com/repos/errbotio/errbot/deployments","created_at":"2012-05-20T21:13:41Z","updated_at":"2016-07-01T21:59:05Z","pushed_at":"2016-06-27T20:22:57Z","git_url":"git://github.com/errbotio/errbot.git","ssh_url":"git@github.com:errbotio/errbot.git","clone_url":"https://github.com/errbotio/errbot.git","svn_url":"https://github.com/errbotio/errbot","homepage":"http://errbot.io","size":6003,"stargazers_count":878,"watchers_count":878,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":183,"mirror_url":null,"open_issues_count":46,"forks":183,"open_issues":46,"watchers":878,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/802"},"html":{"href":"https://github.com/errbotio/errbot/pull/802"},"issue":{"href":"https://api.github.com/repos/errbotio/errbot/issues/802"},"comments":{"href":"https://api.github.com/repos/errbotio/errbot/issues/802/comments"},"review_comments":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/802/comments"},"review_comment":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/errbotio/errbot/pulls/802/commits"},"statuses":{"href":"https://api.github.com/repos/errbotio/errbot/statuses/f5ac8932edc4ba34110c28b95e681ac99ad85947"}}}}
{"actor":{"display_login":"gbin"}}