{"action":"opened","number":739,"pull_request":{"url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/739","id":57690529,"html_url":"https://github.com/hotosm/osm-tasking-manager2/pull/739","diff_url":"https://github.com/hotosm/osm-tasking-manager2/pull/739.diff","patch_url":"https://github.com/hotosm/osm-tasking-manager2/pull/739.patch","issue_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/739","number":739,"state":"open","locked":false,"title":"embed video in task description/ instruction","user":{"login":"yiqingj","id":1747461,"avatar_url":"https://avatars.githubusercontent.com/u/1747461?v=3","gravatar_id":"","url":"https://api.github.com/users/yiqingj","html_url":"https://github.com/yiqingj","followers_url":"https://api.github.com/users/yiqingj/followers","following_url":"https://api.github.com/users/yiqingj/following{/other_user}","gists_url":"https://api.github.com/users/yiqingj/gists{/gist_id}","starred_url":"https://api.github.com/users/yiqingj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiqingj/subscriptions","organizations_url":"https://api.github.com/users/yiqingj/orgs","repos_url":"https://api.github.com/users/yiqingj/repos","events_url":"https://api.github.com/users/yiqingj/events{/privacy}","received_events_url":"https://api.github.com/users/yiqingj/received_events","type":"User","site_admin":false},"body":"this is a copy from PR #738  to squash my commits into one as requested by @pgiraud \r\n\r\n====original message====\r\nfor issue #721\r\nthis is to enable embedding video/image into task description/instruction by adding an oEmbed extension to python markdown library.  \r\n\r\nthis solution is coming from https://github.com/rennat/python-markdown-oembed  with a few bug fixes \r\n\r\na sample markdown for Youtube:\r\n```markdown\r\n![video](http://www.youtube.com/watch?v=StTqXEQ2l-Y)\r\n```\r\n\r\n===== update======\r\nalso support the preview tab by updating showdown version and adding a youtube extension. \r\n\r\n@pyrog I just noticed that PR #527 also try to update showdown version and make all markdown client rendered.   if that's the case we could just add the js youtube extension in my PR and remove the python markdown extension.  Do a cherrypick or just let me know after you merge #572 so I could update my PR accordingly. ","created_at":"2016-01-29T19:21:35Z","updated_at":"2016-01-29T19:21:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/739/commits","review_comments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/739/comments","review_comment_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/739/comments","statuses_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/statuses/2870f11733b7f3b8f622ca5cb69d2296c820e062","head":{"label":"yiqingj:video","ref":"video","sha":"2870f11733b7f3b8f622ca5cb69d2296c820e062","user":{"login":"yiqingj","id":1747461,"avatar_url":"https://avatars.githubusercontent.com/u/1747461?v=3","gravatar_id":"","url":"https://api.github.com/users/yiqingj","html_url":"https://github.com/yiqingj","followers_url":"https://api.github.com/users/yiqingj/followers","following_url":"https://api.github.com/users/yiqingj/following{/other_user}","gists_url":"https://api.github.com/users/yiqingj/gists{/gist_id}","starred_url":"https://api.github.com/users/yiqingj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiqingj/subscriptions","organizations_url":"https://api.github.com/users/yiqingj/orgs","repos_url":"https://api.github.com/users/yiqingj/repos","events_url":"https://api.github.com/users/yiqingj/events{/privacy}","received_events_url":"https://api.github.com/users/yiqingj/received_events","type":"User","site_admin":false},"repo":{"id":50197275,"name":"osm-tasking-manager2","full_name":"yiqingj/osm-tasking-manager2","owner":{"login":"yiqingj","id":1747461,"avatar_url":"https://avatars.githubusercontent.com/u/1747461?v=3","gravatar_id":"","url":"https://api.github.com/users/yiqingj","html_url":"https://github.com/yiqingj","followers_url":"https://api.github.com/users/yiqingj/followers","following_url":"https://api.github.com/users/yiqingj/following{/other_user}","gists_url":"https://api.github.com/users/yiqingj/gists{/gist_id}","starred_url":"https://api.github.com/users/yiqingj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiqingj/subscriptions","organizations_url":"https://api.github.com/users/yiqingj/orgs","repos_url":"https://api.github.com/users/yiqingj/repos","events_url":"https://api.github.com/users/yiqingj/events{/privacy}","received_events_url":"https://api.github.com/users/yiqingj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yiqingj/osm-tasking-manager2","description":"Designed and built for Humanitarian OpenStreetMap Team collaborative emergency/disaster mapping, the OSM Tasking Manager 2.0 divides an area into individual squares that can be rapidly mapped by thousands of volunteers.","fork":true,"url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2","forks_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/forks","keys_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/teams","hooks_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/hooks","issue_events_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/issues/events{/number}","events_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/events","assignees_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/assignees{/user}","branches_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/branches{/branch}","tags_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/tags","blobs_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/statuses/{sha}","languages_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/languages","stargazers_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/stargazers","contributors_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/contributors","subscribers_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/subscribers","subscription_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/subscription","commits_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/contents/{+path}","compare_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/merges","archive_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/downloads","issues_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/issues{/number}","pulls_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/pulls{/number}","milestones_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/milestones{/number}","notifications_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/labels{/name}","releases_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/releases{/id}","deployments_url":"https://api.github.com/repos/yiqingj/osm-tasking-manager2/deployments","created_at":"2016-01-22T17:44:17Z","updated_at":"2016-01-22T17:44:18Z","pushed_at":"2016-01-29T19:18:12Z","git_url":"git://github.com/yiqingj/osm-tasking-manager2.git","ssh_url":"git@github.com:yiqingj/osm-tasking-manager2.git","clone_url":"https://github.com/yiqingj/osm-tasking-manager2.git","svn_url":"https://github.com/yiqingj/osm-tasking-manager2","homepage":"http://tasks.hotosm.org","size":2960,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"hotosm:master","ref":"master","sha":"854a902103f080ef18b90778cca34f9c0ad23710","user":{"login":"hotosm","id":458752,"avatar_url":"https://avatars.githubusercontent.com/u/458752?v=3","gravatar_id":"","url":"https://api.github.com/users/hotosm","html_url":"https://github.com/hotosm","followers_url":"https://api.github.com/users/hotosm/followers","following_url":"https://api.github.com/users/hotosm/following{/other_user}","gists_url":"https://api.github.com/users/hotosm/gists{/gist_id}","starred_url":"https://api.github.com/users/hotosm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotosm/subscriptions","organizations_url":"https://api.github.com/users/hotosm/orgs","repos_url":"https://api.github.com/users/hotosm/repos","events_url":"https://api.github.com/users/hotosm/events{/privacy}","received_events_url":"https://api.github.com/users/hotosm/received_events","type":"Organization","site_admin":false},"repo":{"id":7973671,"name":"osm-tasking-manager2","full_name":"hotosm/osm-tasking-manager2","owner":{"login":"hotosm","id":458752,"avatar_url":"https://avatars.githubusercontent.com/u/458752?v=3","gravatar_id":"","url":"https://api.github.com/users/hotosm","html_url":"https://github.com/hotosm","followers_url":"https://api.github.com/users/hotosm/followers","following_url":"https://api.github.com/users/hotosm/following{/other_user}","gists_url":"https://api.github.com/users/hotosm/gists{/gist_id}","starred_url":"https://api.github.com/users/hotosm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotosm/subscriptions","organizations_url":"https://api.github.com/users/hotosm/orgs","repos_url":"https://api.github.com/users/hotosm/repos","events_url":"https://api.github.com/users/hotosm/events{/privacy}","received_events_url":"https://api.github.com/users/hotosm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hotosm/osm-tasking-manager2","description":"Designed and built for Humanitarian OpenStreetMap Team collaborative emergency/disaster mapping, the OSM Tasking Manager 2.0 divides an area into individual squares that can be rapidly mapped by thousands of volunteers.","fork":false,"url":"https://api.github.com/repos/hotosm/osm-tasking-manager2","forks_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/forks","keys_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/teams","hooks_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/hooks","issue_events_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/events{/number}","events_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/events","assignees_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/assignees{/user}","branches_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/branches{/branch}","tags_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/tags","blobs_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/refs{/sha}","trees_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/statuses/{sha}","languages_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/languages","stargazers_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/stargazers","contributors_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/contributors","subscribers_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/subscribers","subscription_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/subscription","commits_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/commits{/sha}","git_commits_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/git/commits{/sha}","comments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/comments{/number}","issue_comment_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/comments{/number}","contents_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/contents/{+path}","compare_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/merges","archive_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/downloads","issues_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues{/number}","pulls_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls{/number}","milestones_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/milestones{/number}","notifications_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/labels{/name}","releases_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/releases{/id}","deployments_url":"https://api.github.com/repos/hotosm/osm-tasking-manager2/deployments","created_at":"2013-02-02T08:46:10Z","updated_at":"2016-01-24T22:37:21Z","pushed_at":"2016-01-29T19:21:35Z","git_url":"git://github.com/hotosm/osm-tasking-manager2.git","ssh_url":"git@github.com:hotosm/osm-tasking-manager2.git","clone_url":"https://github.com/hotosm/osm-tasking-manager2.git","svn_url":"https://github.com/hotosm/osm-tasking-manager2","homepage":"http://tasks.hotosm.org","size":5095,"stargazers_count":118,"watchers_count":118,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":209,"forks":66,"open_issues":209,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/739"},"html":{"href":"https://github.com/hotosm/osm-tasking-manager2/pull/739"},"issue":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/739"},"comments":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/issues/739/comments"},"review_comments":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/739/comments"},"review_comment":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/pulls/739/commits"},"statuses":{"href":"https://api.github.com/repos/hotosm/osm-tasking-manager2/statuses/2870f11733b7f3b8f622ca5cb69d2296c820e062"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":205,"deletions":4,"changed_files":9}}