{"action":"created","comment":{"url":"https://api.github.com/repos/marktext/marktext/pulls/comments/213354256","pull_request_review_id":150172816,"id":213354256,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzM1NDI1Ng==","diff_hunk":"@@ -195,10 +196,19 @@ export const getImageInfo = src => {\n       isUnknownType: true,\n       src\n     }\n-  }\n-  return {\n-    isUnknownType: false,\n-    src: ''\n+  } else {\n+    const isDataUrl = DATA_URL_REG.test(src)\n+    if (isDataUrl) {\n+      return {\n+        isUnknownType: false,\n+        src: src","path":"src/muya/lib/utils/index.js","position":21,"original_position":21,"commit_id":"d407a9b208bd94dfbeb0cac4dfc8c6d321278d01","original_commit_id":"d407a9b208bd94dfbeb0cac4dfc8c6d321278d01","user":{"login":"Jocs","id":9712830,"node_id":"MDQ6VXNlcjk3MTI4MzA=","avatar_url":"https://avatars0.githubusercontent.com/u/9712830?v=4","gravatar_id":"","url":"https://api.github.com/users/Jocs","html_url":"https://github.com/Jocs","followers_url":"https://api.github.com/users/Jocs/followers","following_url":"https://api.github.com/users/Jocs/following{/other_user}","gists_url":"https://api.github.com/users/Jocs/gists{/gist_id}","starred_url":"https://api.github.com/users/Jocs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jocs/subscriptions","organizations_url":"https://api.github.com/users/Jocs/orgs","repos_url":"https://api.github.com/users/Jocs/repos","events_url":"https://api.github.com/users/Jocs/events{/privacy}","received_events_url":"https://api.github.com/users/Jocs/received_events","type":"User","site_admin":false},"body":"What's the meaning of `L186`?","created_at":"2018-08-28T15:09:56Z","updated_at":"2018-08-28T15:10:03Z","html_url":"https://github.com/marktext/marktext/pull/480#discussion_r213354256","pull_request_url":"https://api.github.com/repos/marktext/marktext/pulls/480","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/marktext/marktext/pulls/comments/213354256"},"html":{"href":"https://github.com/marktext/marktext/pull/480#discussion_r213354256"},"pull_request":{"href":"https://api.github.com/repos/marktext/marktext/pulls/480"}},"in_reply_to_id":213316501},"pull_request":{"url":"https://api.github.com/repos/marktext/marktext/pulls/480","id":211361561,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMzYxNTYx","html_url":"https://github.com/marktext/marktext/pull/480","diff_url":"https://github.com/marktext/marktext/pull/480.diff","patch_url":"https://github.com/marktext/marktext/pull/480.patch","issue_url":"https://api.github.com/repos/marktext/marktext/issues/480","number":480,"state":"open","locked":false,"title":"fix: #429 Support DataURL images","user":{"login":"heymind","id":11583541,"node_id":"MDQ6VXNlcjExNTgzNTQx","avatar_url":"https://avatars1.githubusercontent.com/u/11583541?v=4","gravatar_id":"","url":"https://api.github.com/users/heymind","html_url":"https://github.com/heymind","followers_url":"https://api.github.com/users/heymind/followers","following_url":"https://api.github.com/users/heymind/following{/other_user}","gists_url":"https://api.github.com/users/heymind/gists{/gist_id}","starred_url":"https://api.github.com/users/heymind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heymind/subscriptions","organizations_url":"https://api.github.com/users/heymind/orgs","repos_url":"https://api.github.com/users/heymind/repos","events_url":"https://api.github.com/users/heymind/events{/privacy}","received_events_url":"https://api.github.com/users/heymind/received_events","type":"User","site_admin":false},"body":"| Q                | A\r\n| ---------------- | ---\r\n| Bug fix?         | yes\r\n| New feature?     | no\r\n| BC breaks?       | no\r\n| Deprecations?    | no\r\n| New tests added? | not needed\r\n| Fixed tickets    | #429 \r\n| License          | MIT\r\n\r\n### Description\r\n\r\n![snipaste_2018-08-28_17-38-25](https://user-images.githubusercontent.com/11583541/44715222-ca200c80-aae9-11e8-8d69-7f0081b3c1f3.png)\r\n","created_at":"2018-08-28T09:43:27Z","updated_at":"2018-08-28T15:10:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34327d6a510246e5467556fd736504f108480251","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/marktext/marktext/pulls/480/commits","review_comments_url":"https://api.github.com/repos/marktext/marktext/pulls/480/comments","review_comment_url":"https://api.github.com/repos/marktext/marktext/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marktext/marktext/issues/480/comments","statuses_url":"https://api.github.com/repos/marktext/marktext/statuses/d407a9b208bd94dfbeb0cac4dfc8c6d321278d01","head":{"label":"heymind:bugfix429","ref":"bugfix429","sha":"d407a9b208bd94dfbeb0cac4dfc8c6d321278d01","user":{"login":"heymind","id":11583541,"node_id":"MDQ6VXNlcjExNTgzNTQx","avatar_url":"https://avatars1.githubusercontent.com/u/11583541?v=4","gravatar_id":"","url":"https://api.github.com/users/heymind","html_url":"https://github.com/heymind","followers_url":"https://api.github.com/users/heymind/followers","following_url":"https://api.github.com/users/heymind/following{/other_user}","gists_url":"https://api.github.com/users/heymind/gists{/gist_id}","starred_url":"https://api.github.com/users/heymind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heymind/subscriptions","organizations_url":"https://api.github.com/users/heymind/orgs","repos_url":"https://api.github.com/users/heymind/repos","events_url":"https://api.github.com/users/heymind/events{/privacy}","received_events_url":"https://api.github.com/users/heymind/received_events","type":"User","site_admin":false},"repo":{"id":139932688,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk5MzI2ODg=","name":"marktext","full_name":"heymind/marktext","owner":{"login":"heymind","id":11583541,"node_id":"MDQ6VXNlcjExNTgzNTQx","avatar_url":"https://avatars1.githubusercontent.com/u/11583541?v=4","gravatar_id":"","url":"https://api.github.com/users/heymind","html_url":"https://github.com/heymind","followers_url":"https://api.github.com/users/heymind/followers","following_url":"https://api.github.com/users/heymind/following{/other_user}","gists_url":"https://api.github.com/users/heymind/gists{/gist_id}","starred_url":"https://api.github.com/users/heymind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heymind/subscriptions","organizations_url":"https://api.github.com/users/heymind/orgs","repos_url":"https://api.github.com/users/heymind/repos","events_url":"https://api.github.com/users/heymind/events{/privacy}","received_events_url":"https://api.github.com/users/heymind/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/heymind/marktext","description":"📝Next generation markdown editor, running on platforms of MacOS Windows and Linux.","fork":true,"url":"https://api.github.com/repos/heymind/marktext","forks_url":"https://api.github.com/repos/heymind/marktext/forks","keys_url":"https://api.github.com/repos/heymind/marktext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heymind/marktext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heymind/marktext/teams","hooks_url":"https://api.github.com/repos/heymind/marktext/hooks","issue_events_url":"https://api.github.com/repos/heymind/marktext/issues/events{/number}","events_url":"https://api.github.com/repos/heymind/marktext/events","assignees_url":"https://api.github.com/repos/heymind/marktext/assignees{/user}","branches_url":"https://api.github.com/repos/heymind/marktext/branches{/branch}","tags_url":"https://api.github.com/repos/heymind/marktext/tags","blobs_url":"https://api.github.com/repos/heymind/marktext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heymind/marktext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heymind/marktext/git/refs{/sha}","trees_url":"https://api.github.com/repos/heymind/marktext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heymind/marktext/statuses/{sha}","languages_url":"https://api.github.com/repos/heymind/marktext/languages","stargazers_url":"https://api.github.com/repos/heymind/marktext/stargazers","contributors_url":"https://api.github.com/repos/heymind/marktext/contributors","subscribers_url":"https://api.github.com/repos/heymind/marktext/subscribers","subscription_url":"https://api.github.com/repos/heymind/marktext/subscription","commits_url":"https://api.github.com/repos/heymind/marktext/commits{/sha}","git_commits_url":"https://api.github.com/repos/heymind/marktext/git/commits{/sha}","comments_url":"https://api.github.com/repos/heymind/marktext/comments{/number}","issue_comment_url":"https://api.github.com/repos/heymind/marktext/issues/comments{/number}","contents_url":"https://api.github.com/repos/heymind/marktext/contents/{+path}","compare_url":"https://api.github.com/repos/heymind/marktext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heymind/marktext/merges","archive_url":"https://api.github.com/repos/heymind/marktext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heymind/marktext/downloads","issues_url":"https://api.github.com/repos/heymind/marktext/issues{/number}","pulls_url":"https://api.github.com/repos/heymind/marktext/pulls{/number}","milestones_url":"https://api.github.com/repos/heymind/marktext/milestones{/number}","notifications_url":"https://api.github.com/repos/heymind/marktext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heymind/marktext/labels{/name}","releases_url":"https://api.github.com/repos/heymind/marktext/releases{/id}","deployments_url":"https://api.github.com/repos/heymind/marktext/deployments","created_at":"2018-07-06T04:21:45Z","updated_at":"2018-08-28T08:39:54Z","pushed_at":"2018-08-28T09:39:36Z","git_url":"git://github.com/heymind/marktext.git","ssh_url":"git@github.com:heymind/marktext.git","clone_url":"https://github.com/heymind/marktext.git","svn_url":"https://github.com/heymind/marktext","homepage":"https://marktext.github.io/website/","size":55617,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"marktext:master","ref":"master","sha":"f1e2085e6d8cf84af389132f5d58ced784a372b4","user":{"login":"marktext","id":36623013,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjIzMDEz","avatar_url":"https://avatars0.githubusercontent.com/u/36623013?v=4","gravatar_id":"","url":"https://api.github.com/users/marktext","html_url":"https://github.com/marktext","followers_url":"https://api.github.com/users/marktext/followers","following_url":"https://api.github.com/users/marktext/following{/other_user}","gists_url":"https://api.github.com/users/marktext/gists{/gist_id}","starred_url":"https://api.github.com/users/marktext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marktext/subscriptions","organizations_url":"https://api.github.com/users/marktext/orgs","repos_url":"https://api.github.com/users/marktext/repos","events_url":"https://api.github.com/users/marktext/events{/privacy}","received_events_url":"https://api.github.com/users/marktext/received_events","type":"Organization","site_admin":false},"repo":{"id":110446844,"node_id":"MDEwOlJlcG9zaXRvcnkxMTA0NDY4NDQ=","name":"marktext","full_name":"marktext/marktext","owner":{"login":"marktext","id":36623013,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NjIzMDEz","avatar_url":"https://avatars0.githubusercontent.com/u/36623013?v=4","gravatar_id":"","url":"https://api.github.com/users/marktext","html_url":"https://github.com/marktext","followers_url":"https://api.github.com/users/marktext/followers","following_url":"https://api.github.com/users/marktext/following{/other_user}","gists_url":"https://api.github.com/users/marktext/gists{/gist_id}","starred_url":"https://api.github.com/users/marktext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marktext/subscriptions","organizations_url":"https://api.github.com/users/marktext/orgs","repos_url":"https://api.github.com/users/marktext/repos","events_url":"https://api.github.com/users/marktext/events{/privacy}","received_events_url":"https://api.github.com/users/marktext/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marktext/marktext","description":"📝Next generation markdown editor, running on platforms of MacOS Windows and Linux.","fork":false,"url":"https://api.github.com/repos/marktext/marktext","forks_url":"https://api.github.com/repos/marktext/marktext/forks","keys_url":"https://api.github.com/repos/marktext/marktext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marktext/marktext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marktext/marktext/teams","hooks_url":"https://api.github.com/repos/marktext/marktext/hooks","issue_events_url":"https://api.github.com/repos/marktext/marktext/issues/events{/number}","events_url":"https://api.github.com/repos/marktext/marktext/events","assignees_url":"https://api.github.com/repos/marktext/marktext/assignees{/user}","branches_url":"https://api.github.com/repos/marktext/marktext/branches{/branch}","tags_url":"https://api.github.com/repos/marktext/marktext/tags","blobs_url":"https://api.github.com/repos/marktext/marktext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marktext/marktext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marktext/marktext/git/refs{/sha}","trees_url":"https://api.github.com/repos/marktext/marktext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marktext/marktext/statuses/{sha}","languages_url":"https://api.github.com/repos/marktext/marktext/languages","stargazers_url":"https://api.github.com/repos/marktext/marktext/stargazers","contributors_url":"https://api.github.com/repos/marktext/marktext/contributors","subscribers_url":"https://api.github.com/repos/marktext/marktext/subscribers","subscription_url":"https://api.github.com/repos/marktext/marktext/subscription","commits_url":"https://api.github.com/repos/marktext/marktext/commits{/sha}","git_commits_url":"https://api.github.com/repos/marktext/marktext/git/commits{/sha}","comments_url":"https://api.github.com/repos/marktext/marktext/comments{/number}","issue_comment_url":"https://api.github.com/repos/marktext/marktext/issues/comments{/number}","contents_url":"https://api.github.com/repos/marktext/marktext/contents/{+path}","compare_url":"https://api.github.com/repos/marktext/marktext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marktext/marktext/merges","archive_url":"https://api.github.com/repos/marktext/marktext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marktext/marktext/downloads","issues_url":"https://api.github.com/repos/marktext/marktext/issues{/number}","pulls_url":"https://api.github.com/repos/marktext/marktext/pulls{/number}","milestones_url":"https://api.github.com/repos/marktext/marktext/milestones{/number}","notifications_url":"https://api.github.com/repos/marktext/marktext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marktext/marktext/labels{/name}","releases_url":"https://api.github.com/repos/marktext/marktext/releases{/id}","deployments_url":"https://api.github.com/repos/marktext/marktext/deployments","created_at":"2017-11-12T16:05:25Z","updated_at":"2018-08-28T15:09:47Z","pushed_at":"2018-08-28T09:43:28Z","git_url":"git://github.com/marktext/marktext.git","ssh_url":"git@github.com:marktext/marktext.git","clone_url":"https://github.com/marktext/marktext.git","svn_url":"https://github.com/marktext/marktext","homepage":"https://marktext.github.io/website/","size":55615,"stargazers_count":7182,"watchers_count":7182,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":367,"mirror_url":null,"archived":false,"open_issues_count":99,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":367,"open_issues":99,"watchers":7182,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marktext/marktext/pulls/480"},"html":{"href":"https://github.com/marktext/marktext/pull/480"},"issue":{"href":"https://api.github.com/repos/marktext/marktext/issues/480"},"comments":{"href":"https://api.github.com/repos/marktext/marktext/issues/480/comments"},"review_comments":{"href":"https://api.github.com/repos/marktext/marktext/pulls/480/comments"},"review_comment":{"href":"https://api.github.com/repos/marktext/marktext/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marktext/marktext/pulls/480/commits"},"statuses":{"href":"https://api.github.com/repos/marktext/marktext/statuses/d407a9b208bd94dfbeb0cac4dfc8c6d321278d01"}},"author_association":"NONE"}}
{"actor":{"display_login":"Jocs"}}