{"action":"opened","number":43,"pull_request":{"url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/43","id":179814817,"html_url":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/43","diff_url":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/43.diff","patch_url":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/43.patch","issue_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/43","number":43,"state":"open","locked":false,"title":"Whitelist markdown features via `config.features`","user":{"login":"juliankrispel","id":1188186,"avatar_url":"https://avatars1.githubusercontent.com/u/1188186?v=4","gravatar_id":"","url":"https://api.github.com/users/juliankrispel","html_url":"https://github.com/juliankrispel","followers_url":"https://api.github.com/users/juliankrispel/followers","following_url":"https://api.github.com/users/juliankrispel/following{/other_user}","gists_url":"https://api.github.com/users/juliankrispel/gists{/gist_id}","starred_url":"https://api.github.com/users/juliankrispel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliankrispel/subscriptions","organizations_url":"https://api.github.com/users/juliankrispel/orgs","repos_url":"https://api.github.com/users/juliankrispel/repos","events_url":"https://api.github.com/users/juliankrispel/events{/privacy}","received_events_url":"https://api.github.com/users/juliankrispel/received_events","type":"User","site_admin":false},"body":"- [x] whitelist block features\r\n- [x] whitelist inline features\r\n- [x] update tests\r\n- [x] update readme to document whitelisted features\r\n\r\nfixes #21\r\n\r\nExample:\r\n\r\n```js\r\n// this will only enable BOLD for inline and CODE\r\n// as well as header-one for blocks\r\nconst features = {\r\n  inline: ['BOLD'],\r\n  block: ['CODE', 'header-one'],\r\n}\r\nconst plugin = createMarkdownPlugin({ features })\r\n```","created_at":"2018-04-05T22:36:19Z","updated_at":"2018-04-05T22:36:19Z","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/withspectrum/draft-js-markdown-plugin/pulls/43/commits","review_comments_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/43/comments","review_comment_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/43/comments","statuses_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/statuses/dd69ecf876572a8dec58c9c86cc341c9d5e10140","head":{"label":"withspectrum:whitelist-features","ref":"whitelist-features","sha":"dd69ecf876572a8dec58c9c86cc341c9d5e10140","user":{"login":"withspectrum","id":25838825,"avatar_url":"https://avatars1.githubusercontent.com/u/25838825?v=4","gravatar_id":"","url":"https://api.github.com/users/withspectrum","html_url":"https://github.com/withspectrum","followers_url":"https://api.github.com/users/withspectrum/followers","following_url":"https://api.github.com/users/withspectrum/following{/other_user}","gists_url":"https://api.github.com/users/withspectrum/gists{/gist_id}","starred_url":"https://api.github.com/users/withspectrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withspectrum/subscriptions","organizations_url":"https://api.github.com/users/withspectrum/orgs","repos_url":"https://api.github.com/users/withspectrum/repos","events_url":"https://api.github.com/users/withspectrum/events{/privacy}","received_events_url":"https://api.github.com/users/withspectrum/received_events","type":"Organization","site_admin":false},"repo":{"id":104383095,"name":"draft-js-markdown-plugin","full_name":"withspectrum/draft-js-markdown-plugin","owner":{"login":"withspectrum","id":25838825,"avatar_url":"https://avatars1.githubusercontent.com/u/25838825?v=4","gravatar_id":"","url":"https://api.github.com/users/withspectrum","html_url":"https://github.com/withspectrum","followers_url":"https://api.github.com/users/withspectrum/followers","following_url":"https://api.github.com/users/withspectrum/following{/other_user}","gists_url":"https://api.github.com/users/withspectrum/gists{/gist_id}","starred_url":"https://api.github.com/users/withspectrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withspectrum/subscriptions","organizations_url":"https://api.github.com/users/withspectrum/orgs","repos_url":"https://api.github.com/users/withspectrum/repos","events_url":"https://api.github.com/users/withspectrum/events{/privacy}","received_events_url":"https://api.github.com/users/withspectrum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/withspectrum/draft-js-markdown-plugin","description":"A DraftJS plugin for supporting Markdown syntax shortcuts","fork":true,"url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin","forks_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/forks","keys_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/teams","hooks_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/hooks","issue_events_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/events","assignees_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/tags","blobs_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/languages","stargazers_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/stargazers","contributors_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/contributors","subscribers_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/subscribers","subscription_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/subscription","commits_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/merges","archive_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/downloads","issues_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/labels{/name}","releases_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/deployments","created_at":"2017-09-21T18:18:28Z","updated_at":"2018-04-05T14:29:36Z","pushed_at":"2018-04-05T22:31:55Z","git_url":"git://github.com/withspectrum/draft-js-markdown-plugin.git","ssh_url":"git@github.com:withspectrum/draft-js-markdown-plugin.git","clone_url":"https://github.com/withspectrum/draft-js-markdown-plugin.git","svn_url":"https://github.com/withspectrum/draft-js-markdown-plugin","homepage":"https://markdown-plugin.spectrum.chat/","size":5225,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":9,"open_issues":9,"watchers":18,"default_branch":"master"}},"base":{"label":"withspectrum:master","ref":"master","sha":"dc86d63f761581d7fd8734cac1e964326ddd558d","user":{"login":"withspectrum","id":25838825,"avatar_url":"https://avatars1.githubusercontent.com/u/25838825?v=4","gravatar_id":"","url":"https://api.github.com/users/withspectrum","html_url":"https://github.com/withspectrum","followers_url":"https://api.github.com/users/withspectrum/followers","following_url":"https://api.github.com/users/withspectrum/following{/other_user}","gists_url":"https://api.github.com/users/withspectrum/gists{/gist_id}","starred_url":"https://api.github.com/users/withspectrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withspectrum/subscriptions","organizations_url":"https://api.github.com/users/withspectrum/orgs","repos_url":"https://api.github.com/users/withspectrum/repos","events_url":"https://api.github.com/users/withspectrum/events{/privacy}","received_events_url":"https://api.github.com/users/withspectrum/received_events","type":"Organization","site_admin":false},"repo":{"id":104383095,"name":"draft-js-markdown-plugin","full_name":"withspectrum/draft-js-markdown-plugin","owner":{"login":"withspectrum","id":25838825,"avatar_url":"https://avatars1.githubusercontent.com/u/25838825?v=4","gravatar_id":"","url":"https://api.github.com/users/withspectrum","html_url":"https://github.com/withspectrum","followers_url":"https://api.github.com/users/withspectrum/followers","following_url":"https://api.github.com/users/withspectrum/following{/other_user}","gists_url":"https://api.github.com/users/withspectrum/gists{/gist_id}","starred_url":"https://api.github.com/users/withspectrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/withspectrum/subscriptions","organizations_url":"https://api.github.com/users/withspectrum/orgs","repos_url":"https://api.github.com/users/withspectrum/repos","events_url":"https://api.github.com/users/withspectrum/events{/privacy}","received_events_url":"https://api.github.com/users/withspectrum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/withspectrum/draft-js-markdown-plugin","description":"A DraftJS plugin for supporting Markdown syntax shortcuts","fork":true,"url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin","forks_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/forks","keys_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/teams","hooks_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/hooks","issue_events_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/events","assignees_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/tags","blobs_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/languages","stargazers_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/stargazers","contributors_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/contributors","subscribers_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/subscribers","subscription_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/subscription","commits_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/merges","archive_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/downloads","issues_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/labels{/name}","releases_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/deployments","created_at":"2017-09-21T18:18:28Z","updated_at":"2018-04-05T14:29:36Z","pushed_at":"2018-04-05T22:31:55Z","git_url":"git://github.com/withspectrum/draft-js-markdown-plugin.git","ssh_url":"git@github.com:withspectrum/draft-js-markdown-plugin.git","clone_url":"https://github.com/withspectrum/draft-js-markdown-plugin.git","svn_url":"https://github.com/withspectrum/draft-js-markdown-plugin","homepage":"https://markdown-plugin.spectrum.chat/","size":5225,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":9,"open_issues":9,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/43"},"html":{"href":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/43"},"issue":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/43"},"comments":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/statuses/dd69ecf876572a8dec58c9c86cc341c9d5e10140"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":250,"deletions":66,"changed_files":9}}
{"actor":{"display_login":"juliankrispel"}}