{"action":"created","comment":{"url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/comments/190499694","pull_request_review_id":122886115,"id":190499694,"diff_hunk":"@@ -202,6 +202,27 @@ function checkReturnForState(config, editorState, ev) {\n   return newEditorState;\n }\n \n+const unstickyInlineStyles = (character, editorState) => {\n+  const selection = editorState.getSelection();\n+  if (!selection.isCollapsed()) return editorState;\n+\n+  const startOffset = selection.getStartOffset();\n+  const content = editorState.getCurrentContent();\n+  const block = content.getBlockForKey(selection.getStartKey());\n+  const entity = block.getEntityAt(startOffset);\n+  if (entity !== null) return editorState;","path":"src/index.js","position":12,"original_position":12,"commit_id":"935fe755ee3b30c371d55366198efd0555dffbe0","original_commit_id":"935fe755ee3b30c371d55366198efd0555dffbe0","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":"It'd be nice if you could also add a check for an inline entity","created_at":"2018-05-24T08:15:48Z","updated_at":"2018-05-24T08:19:21Z","html_url":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/83#discussion_r190499694","pull_request_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/83","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/comments/190499694"},"html":{"href":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/83#discussion_r190499694"},"pull_request":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/83","id":190199697,"html_url":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/83","diff_url":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/83.diff","patch_url":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/83.patch","issue_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/83","number":83,"state":"open","locked":false,"title":"Unsticky inline styles","user":{"login":"mxstbr","id":7525670,"avatar_url":"https://avatars0.githubusercontent.com/u/7525670?v=4","gravatar_id":"","url":"https://api.github.com/users/mxstbr","html_url":"https://github.com/mxstbr","followers_url":"https://api.github.com/users/mxstbr/followers","following_url":"https://api.github.com/users/mxstbr/following{/other_user}","gists_url":"https://api.github.com/users/mxstbr/gists{/gist_id}","starred_url":"https://api.github.com/users/mxstbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxstbr/subscriptions","organizations_url":"https://api.github.com/users/mxstbr/orgs","repos_url":"https://api.github.com/users/mxstbr/repos","events_url":"https://api.github.com/users/mxstbr/events{/privacy}","received_events_url":"https://api.github.com/users/mxstbr/received_events","type":"User","site_admin":false},"body":"This \"unstickies\" inline styles, so that when you type *bold* text, backspace to the ending edge of the bold text and start typing again the bold doesn't \"stick\" to the text, only when typing within it. This feels much better than before.\n\nRecorded demo: ![](https://i.imgur.com/gWSLp06.gif)\nLive demo: https://public-mffnxzocik.now.sh\n\n/cc @brianlovin @wmertens this should be a fix for the issues you were having!","created_at":"2018-05-24T07:57:41Z","updated_at":"2018-05-24T08:19:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29cca90c0621a13727b48b0378532acf51d8dc7f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/83/commits","review_comments_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/83/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/83/comments","statuses_url":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/statuses/935fe755ee3b30c371d55366198efd0555dffbe0","head":{"label":"withspectrum:unsticky","ref":"unsticky","sha":"935fe755ee3b30c371d55366198efd0555dffbe0","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-05-23T14:29:34Z","pushed_at":"2018-05-24T07:57:42Z","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":5224,"stargazers_count":27,"watchers_count":27,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":12,"open_issues":18,"watchers":27,"default_branch":"master"}},"base":{"label":"withspectrum:master","ref":"master","sha":"d0c5dcb128a1a4924f8d2c076c8d2b5d6ef1d42a","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-05-23T14:29:34Z","pushed_at":"2018-05-24T07:57:42Z","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":5224,"stargazers_count":27,"watchers_count":27,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":12,"open_issues":18,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/83"},"html":{"href":"https://github.com/withspectrum/draft-js-markdown-plugin/pull/83"},"issue":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/83"},"comments":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/pulls/83/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/83/commits"},"statuses":{"href":"https://api.github.com/repos/withspectrum/draft-js-markdown-plugin/statuses/935fe755ee3b30c371d55366198efd0555dffbe0"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"juliankrispel"}}