{"action":"created","comment":{"url":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/comments/69366944","id":69366944,"diff_hunk":"@@ -0,0 +1,14 @@\n+/* eslint-disable max-len, no-unused-vars */\n+const IconInternalLink = `<svg viewBox=\"0 0 20 20\" width=\"20\" height=\"20\"><path d=\"M16.3 10L11 15.2l-1.3-1.3 3-2.9h-9V9h8.9L9.7 6 11 4.8l5.3 5.2z\" fill=\"inherit\"/></svg>`;\n+\n+const IconExternalLink = `<svg viewBox=\"0 0 20 20\" width=\"20\" height=\"20\"><path fill=\"inherit\" d=\"M14.2 16.8h-11V5.7H9V5H2.4v12.5h12.5V11h-.7\"/><path d=\"M18.4 1.6V9h-1.9V4.8l-6.3 6.3-1.3-1.3 6.3-6.3H11V1.6h7.4z\" fill=\"inherit\"/></svg>`;\n+\n+export default {\n+  link: (href, title, text) => {\n+    const Icon = href.includes(\"formidable.com\") ? IconInternalLink : IconExternalLink;","path":"src/markdown-renderers/external-link-icons.js","position":8,"original_position":8,"commit_id":"0e16e78dbbefad7c1fe940df3ed72bef9ced7c9f","original_commit_id":"0e16e78dbbefad7c1fe940df3ed72bef9ced7c9f","user":{"login":"coopy","id":794843,"avatar_url":"https://avatars.githubusercontent.com/u/794843?v=3","gravatar_id":"","url":"https://api.github.com/users/coopy","html_url":"https://github.com/coopy","followers_url":"https://api.github.com/users/coopy/followers","following_url":"https://api.github.com/users/coopy/following{/other_user}","gists_url":"https://api.github.com/users/coopy/gists{/gist_id}","starred_url":"https://api.github.com/users/coopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopy/subscriptions","organizations_url":"https://api.github.com/users/coopy/orgs","repos_url":"https://api.github.com/users/coopy/repos","events_url":"https://api.github.com/users/coopy/events{/privacy}","received_events_url":"https://api.github.com/users/coopy/received_events","type":"User","site_admin":false},"body":"`append-link-icon.js` works better as a name for this behavior.\r\n\r\nI guess Marked does not support a stack of renderer functions, such that you could pass through both an internalIcon and externalIcon renderer.","created_at":"2016-07-01T23:39:35Z","updated_at":"2016-07-01T23:39:35Z","html_url":"https://github.com/FormidableLabs/formidable-landers/pull/102#discussion_r69366944","pull_request_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/comments/69366944"},"html":{"href":"https://github.com/FormidableLabs/formidable-landers/pull/102#discussion_r69366944"},"pull_request":{"href":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/102","id":76018998,"html_url":"https://github.com/FormidableLabs/formidable-landers/pull/102","diff_url":"https://github.com/FormidableLabs/formidable-landers/pull/102.diff","patch_url":"https://github.com/FormidableLabs/formidable-landers/pull/102.patch","issue_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues/102","number":102,"state":"open","locked":false,"title":"Add function for internal/external link","user":{"login":"kylecesmat","id":1633837,"avatar_url":"https://avatars.githubusercontent.com/u/1633837?v=3","gravatar_id":"","url":"https://api.github.com/users/kylecesmat","html_url":"https://github.com/kylecesmat","followers_url":"https://api.github.com/users/kylecesmat/followers","following_url":"https://api.github.com/users/kylecesmat/following{/other_user}","gists_url":"https://api.github.com/users/kylecesmat/gists{/gist_id}","starred_url":"https://api.github.com/users/kylecesmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylecesmat/subscriptions","organizations_url":"https://api.github.com/users/kylecesmat/orgs","repos_url":"https://api.github.com/users/kylecesmat/repos","events_url":"https://api.github.com/users/kylecesmat/events{/privacy}","received_events_url":"https://api.github.com/users/kylecesmat/received_events","type":"User","site_admin":false},"body":"Add a shared custom ecology renderer method that appends icons to links depending on if they are internal or external to formidable labs.\r\n\r\ncc @coopy ","created_at":"2016-07-01T18:25:00Z","updated_at":"2016-07-01T23:39:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"410966a6c868830e0587bea015d5268b051a58af","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/102/commits","review_comments_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/102/comments","review_comment_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues/102/comments","statuses_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/statuses/0e16e78dbbefad7c1fe940df3ed72bef9ced7c9f","head":{"label":"FormidableLabs:feature-externalLinkRenderer","ref":"feature-externalLinkRenderer","sha":"0e16e78dbbefad7c1fe940df3ed72bef9ced7c9f","user":{"login":"FormidableLabs","id":5078602,"avatar_url":"https://avatars.githubusercontent.com/u/5078602?v=3","gravatar_id":"","url":"https://api.github.com/users/FormidableLabs","html_url":"https://github.com/FormidableLabs","followers_url":"https://api.github.com/users/FormidableLabs/followers","following_url":"https://api.github.com/users/FormidableLabs/following{/other_user}","gists_url":"https://api.github.com/users/FormidableLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/FormidableLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FormidableLabs/subscriptions","organizations_url":"https://api.github.com/users/FormidableLabs/orgs","repos_url":"https://api.github.com/users/FormidableLabs/repos","events_url":"https://api.github.com/users/FormidableLabs/events{/privacy}","received_events_url":"https://api.github.com/users/FormidableLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":45643706,"name":"formidable-landers","full_name":"FormidableLabs/formidable-landers","owner":{"login":"FormidableLabs","id":5078602,"avatar_url":"https://avatars.githubusercontent.com/u/5078602?v=3","gravatar_id":"","url":"https://api.github.com/users/FormidableLabs","html_url":"https://github.com/FormidableLabs","followers_url":"https://api.github.com/users/FormidableLabs/followers","following_url":"https://api.github.com/users/FormidableLabs/following{/other_user}","gists_url":"https://api.github.com/users/FormidableLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/FormidableLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FormidableLabs/subscriptions","organizations_url":"https://api.github.com/users/FormidableLabs/orgs","repos_url":"https://api.github.com/users/FormidableLabs/repos","events_url":"https://api.github.com/users/FormidableLabs/events{/privacy}","received_events_url":"https://api.github.com/users/FormidableLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FormidableLabs/formidable-landers","description":"One header and one footer to rule over them all.","fork":false,"url":"https://api.github.com/repos/FormidableLabs/formidable-landers","forks_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/forks","keys_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/teams","hooks_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/hooks","issue_events_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues/events{/number}","events_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/events","assignees_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/assignees{/user}","branches_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/branches{/branch}","tags_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/tags","blobs_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/refs{/sha}","trees_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/statuses/{sha}","languages_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/languages","stargazers_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/stargazers","contributors_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/contributors","subscribers_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/subscribers","subscription_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/subscription","commits_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/commits{/sha}","git_commits_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/commits{/sha}","comments_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/comments{/number}","issue_comment_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues/comments{/number}","contents_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/contents/{+path}","compare_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/merges","archive_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/downloads","issues_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues{/number}","pulls_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls{/number}","milestones_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/milestones{/number}","notifications_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/labels{/name}","releases_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/releases{/id}","deployments_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/deployments","created_at":"2015-11-05T22:32:54Z","updated_at":"2016-01-15T21:23:19Z","pushed_at":"2016-07-01T23:28:01Z","git_url":"git://github.com/FormidableLabs/formidable-landers.git","ssh_url":"git@github.com:FormidableLabs/formidable-landers.git","clone_url":"https://github.com/FormidableLabs/formidable-landers.git","svn_url":"https://github.com/FormidableLabs/formidable-landers","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":0,"default_branch":"master"}},"base":{"label":"FormidableLabs:master","ref":"master","sha":"d974d9c0c7d5db21559d5ff06265779019fcbc60","user":{"login":"FormidableLabs","id":5078602,"avatar_url":"https://avatars.githubusercontent.com/u/5078602?v=3","gravatar_id":"","url":"https://api.github.com/users/FormidableLabs","html_url":"https://github.com/FormidableLabs","followers_url":"https://api.github.com/users/FormidableLabs/followers","following_url":"https://api.github.com/users/FormidableLabs/following{/other_user}","gists_url":"https://api.github.com/users/FormidableLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/FormidableLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FormidableLabs/subscriptions","organizations_url":"https://api.github.com/users/FormidableLabs/orgs","repos_url":"https://api.github.com/users/FormidableLabs/repos","events_url":"https://api.github.com/users/FormidableLabs/events{/privacy}","received_events_url":"https://api.github.com/users/FormidableLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":45643706,"name":"formidable-landers","full_name":"FormidableLabs/formidable-landers","owner":{"login":"FormidableLabs","id":5078602,"avatar_url":"https://avatars.githubusercontent.com/u/5078602?v=3","gravatar_id":"","url":"https://api.github.com/users/FormidableLabs","html_url":"https://github.com/FormidableLabs","followers_url":"https://api.github.com/users/FormidableLabs/followers","following_url":"https://api.github.com/users/FormidableLabs/following{/other_user}","gists_url":"https://api.github.com/users/FormidableLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/FormidableLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FormidableLabs/subscriptions","organizations_url":"https://api.github.com/users/FormidableLabs/orgs","repos_url":"https://api.github.com/users/FormidableLabs/repos","events_url":"https://api.github.com/users/FormidableLabs/events{/privacy}","received_events_url":"https://api.github.com/users/FormidableLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FormidableLabs/formidable-landers","description":"One header and one footer to rule over them all.","fork":false,"url":"https://api.github.com/repos/FormidableLabs/formidable-landers","forks_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/forks","keys_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/teams","hooks_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/hooks","issue_events_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues/events{/number}","events_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/events","assignees_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/assignees{/user}","branches_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/branches{/branch}","tags_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/tags","blobs_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/refs{/sha}","trees_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/statuses/{sha}","languages_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/languages","stargazers_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/stargazers","contributors_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/contributors","subscribers_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/subscribers","subscription_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/subscription","commits_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/commits{/sha}","git_commits_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/git/commits{/sha}","comments_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/comments{/number}","issue_comment_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues/comments{/number}","contents_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/contents/{+path}","compare_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/merges","archive_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/downloads","issues_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues{/number}","pulls_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls{/number}","milestones_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/milestones{/number}","notifications_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/labels{/name}","releases_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/releases{/id}","deployments_url":"https://api.github.com/repos/FormidableLabs/formidable-landers/deployments","created_at":"2015-11-05T22:32:54Z","updated_at":"2016-01-15T21:23:19Z","pushed_at":"2016-07-01T23:28:01Z","git_url":"git://github.com/FormidableLabs/formidable-landers.git","ssh_url":"git@github.com:FormidableLabs/formidable-landers.git","clone_url":"https://github.com/FormidableLabs/formidable-landers.git","svn_url":"https://github.com/FormidableLabs/formidable-landers","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/102"},"html":{"href":"https://github.com/FormidableLabs/formidable-landers/pull/102"},"issue":{"href":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues/102"},"comments":{"href":"https://api.github.com/repos/FormidableLabs/formidable-landers/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FormidableLabs/formidable-landers/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/FormidableLabs/formidable-landers/statuses/0e16e78dbbefad7c1fe940df3ed72bef9ced7c9f"}}}}
{"actor":{"display_login":"coopy"}}