{"action":"opened","number":31,"pull_request":{"url":"https://api.github.com/repos/contentful/rich-text/pulls/31","id":235924620,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1OTI0NjIw","html_url":"https://github.com/contentful/rich-text/pull/31","diff_url":"https://github.com/contentful/rich-text/pull/31.diff","patch_url":"https://github.com/contentful/rich-text/pull/31.patch","issue_url":"https://api.github.com/repos/contentful/rich-text/issues/31","number":31,"state":"open","locked":false,"title":"[WIP] Refactor from-mardown pkg to be async","user":{"login":"loudmouth","id":4554909,"node_id":"MDQ6VXNlcjQ1NTQ5MDk=","avatar_url":"https://avatars2.githubusercontent.com/u/4554909?v=4","gravatar_id":"","url":"https://api.github.com/users/loudmouth","html_url":"https://github.com/loudmouth","followers_url":"https://api.github.com/users/loudmouth/followers","following_url":"https://api.github.com/users/loudmouth/following{/other_user}","gists_url":"https://api.github.com/users/loudmouth/gists{/gist_id}","starred_url":"https://api.github.com/users/loudmouth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loudmouth/subscriptions","organizations_url":"https://api.github.com/users/loudmouth/orgs","repos_url":"https://api.github.com/users/loudmouth/repos","events_url":"https://api.github.com/users/loudmouth/events{/privacy}","received_events_url":"https://api.github.com/users/loudmouth/received_events","type":"User","site_admin":false},"body":"This PR does a few things:\n- Improves the mapping from the Markdown Tree to Rich Text\n  - The way inline markdown images are represented in the remark markdown tree always makes them a child of a paragraph node. Now, those nodes are hoisted one level so that before calling the `fallback` method, images nodes are top level blocks.\n- Makes the `richTextFromMarkdown` function async so that migration scripts can be written to create assets from inline markdown images.\n- Adds tests for the above :-)","created_at":"2018-12-04T19:05:53Z","updated_at":"2018-12-04T19:05:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/contentful/rich-text/pulls/31/commits","review_comments_url":"https://api.github.com/repos/contentful/rich-text/pulls/31/comments","review_comment_url":"https://api.github.com/repos/contentful/rich-text/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contentful/rich-text/issues/31/comments","statuses_url":"https://api.github.com/repos/contentful/rich-text/statuses/a315434e54b3a9ccf03007b648a5a86d0627bc29","head":{"label":"contentful:refactor/from-md-async","ref":"refactor/from-md-async","sha":"a315434e54b3a9ccf03007b648a5a86d0627bc29","user":{"login":"contentful","id":472182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MjE4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/472182?v=4","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":154490561,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ0OTA1NjE=","name":"rich-text","full_name":"contentful/rich-text","private":false,"owner":{"login":"contentful","id":472182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MjE4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/472182?v=4","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/contentful/rich-text","description":"Libraries for handling and rendering Rich Text 📄","fork":false,"url":"https://api.github.com/repos/contentful/rich-text","forks_url":"https://api.github.com/repos/contentful/rich-text/forks","keys_url":"https://api.github.com/repos/contentful/rich-text/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/rich-text/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/rich-text/teams","hooks_url":"https://api.github.com/repos/contentful/rich-text/hooks","issue_events_url":"https://api.github.com/repos/contentful/rich-text/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/rich-text/events","assignees_url":"https://api.github.com/repos/contentful/rich-text/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/rich-text/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/rich-text/tags","blobs_url":"https://api.github.com/repos/contentful/rich-text/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/rich-text/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/rich-text/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/rich-text/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/rich-text/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/rich-text/languages","stargazers_url":"https://api.github.com/repos/contentful/rich-text/stargazers","contributors_url":"https://api.github.com/repos/contentful/rich-text/contributors","subscribers_url":"https://api.github.com/repos/contentful/rich-text/subscribers","subscription_url":"https://api.github.com/repos/contentful/rich-text/subscription","commits_url":"https://api.github.com/repos/contentful/rich-text/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/rich-text/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/rich-text/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/rich-text/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/rich-text/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/rich-text/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/rich-text/merges","archive_url":"https://api.github.com/repos/contentful/rich-text/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/rich-text/downloads","issues_url":"https://api.github.com/repos/contentful/rich-text/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/rich-text/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/rich-text/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/rich-text/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/rich-text/labels{/name}","releases_url":"https://api.github.com/repos/contentful/rich-text/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/rich-text/deployments","created_at":"2018-10-24T11:37:34Z","updated_at":"2018-12-04T18:40:32Z","pushed_at":"2018-12-04T19:00:04Z","git_url":"git://github.com/contentful/rich-text.git","ssh_url":"git@github.com:contentful/rich-text.git","clone_url":"https://github.com/contentful/rich-text.git","svn_url":"https://github.com/contentful/rich-text","homepage":"","size":874,"stargazers_count":7,"watchers_count":7,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":7,"default_branch":"master"}},"base":{"label":"contentful:master","ref":"master","sha":"ce5822fc9b8c62a19cde479e8daa6664f9705bfd","user":{"login":"contentful","id":472182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MjE4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/472182?v=4","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":154490561,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ0OTA1NjE=","name":"rich-text","full_name":"contentful/rich-text","private":false,"owner":{"login":"contentful","id":472182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MjE4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/472182?v=4","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/contentful/rich-text","description":"Libraries for handling and rendering Rich Text 📄","fork":false,"url":"https://api.github.com/repos/contentful/rich-text","forks_url":"https://api.github.com/repos/contentful/rich-text/forks","keys_url":"https://api.github.com/repos/contentful/rich-text/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/rich-text/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/rich-text/teams","hooks_url":"https://api.github.com/repos/contentful/rich-text/hooks","issue_events_url":"https://api.github.com/repos/contentful/rich-text/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/rich-text/events","assignees_url":"https://api.github.com/repos/contentful/rich-text/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/rich-text/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/rich-text/tags","blobs_url":"https://api.github.com/repos/contentful/rich-text/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/rich-text/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/rich-text/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/rich-text/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/rich-text/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/rich-text/languages","stargazers_url":"https://api.github.com/repos/contentful/rich-text/stargazers","contributors_url":"https://api.github.com/repos/contentful/rich-text/contributors","subscribers_url":"https://api.github.com/repos/contentful/rich-text/subscribers","subscription_url":"https://api.github.com/repos/contentful/rich-text/subscription","commits_url":"https://api.github.com/repos/contentful/rich-text/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/rich-text/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/rich-text/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/rich-text/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/rich-text/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/rich-text/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/rich-text/merges","archive_url":"https://api.github.com/repos/contentful/rich-text/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/rich-text/downloads","issues_url":"https://api.github.com/repos/contentful/rich-text/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/rich-text/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/rich-text/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/rich-text/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/rich-text/labels{/name}","releases_url":"https://api.github.com/repos/contentful/rich-text/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/rich-text/deployments","created_at":"2018-10-24T11:37:34Z","updated_at":"2018-12-04T18:40:32Z","pushed_at":"2018-12-04T19:00:04Z","git_url":"git://github.com/contentful/rich-text.git","ssh_url":"git@github.com:contentful/rich-text.git","clone_url":"https://github.com/contentful/rich-text.git","svn_url":"https://github.com/contentful/rich-text","homepage":"","size":874,"stargazers_count":7,"watchers_count":7,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":2,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contentful/rich-text/pulls/31"},"html":{"href":"https://github.com/contentful/rich-text/pull/31"},"issue":{"href":"https://api.github.com/repos/contentful/rich-text/issues/31"},"comments":{"href":"https://api.github.com/repos/contentful/rich-text/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/contentful/rich-text/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/contentful/rich-text/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contentful/rich-text/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/contentful/rich-text/statuses/a315434e54b3a9ccf03007b648a5a86d0627bc29"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":8886,"deletions":12927,"changed_files":7}}
{"actor":{"display_login":"loudmouth"}}