{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/comments/90850211","pull_request_review_id":11363807,"id":90850211,"diff_hunk":"@@ -0,0 +1,7 @@\n+require 'middleman-core/renderers/redcarpet'\n+\n+class CustomHTMLRenderer < Middleman::Renderers::MiddlemanRedcarpetHTML\n+  def image(*args)\n+    %(<a href=\"#{args.first}\" target=\"_blank\">#{super}</a>)","path":"lib/custom_html_renderer.rb","position":5,"original_position":5,"commit_id":"72dc8a8339b9c1d14717220bc058b95e68093c11","original_commit_id":"72dc8a8339b9c1d14717220bc058b95e68093c11","user":{"login":"thehenster","id":78311,"avatar_url":"https://avatars.githubusercontent.com/u/78311?v=3","gravatar_id":"","url":"https://api.github.com/users/thehenster","html_url":"https://github.com/thehenster","followers_url":"https://api.github.com/users/thehenster/followers","following_url":"https://api.github.com/users/thehenster/following{/other_user}","gists_url":"https://api.github.com/users/thehenster/gists{/gist_id}","starred_url":"https://api.github.com/users/thehenster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehenster/subscriptions","organizations_url":"https://api.github.com/users/thehenster/orgs","repos_url":"https://api.github.com/users/thehenster/repos","events_url":"https://api.github.com/users/thehenster/events{/privacy}","received_events_url":"https://api.github.com/users/thehenster/received_events","type":"User","site_admin":false},"body":"I personally don't like stuff getting opened in new tabs.. especially on mobile. Maybe this is normal though? I dunno.","created_at":"2016-12-05T11:54:16Z","updated_at":"2016-12-05T11:59:51Z","html_url":"https://github.com/alphagov/tech-docs-template/pull/22#discussion_r90850211","pull_request_url":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/comments/90850211"},"html":{"href":"https://github.com/alphagov/tech-docs-template/pull/22#discussion_r90850211"},"pull_request":{"href":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/22","id":96296575,"html_url":"https://github.com/alphagov/tech-docs-template/pull/22","diff_url":"https://github.com/alphagov/tech-docs-template/pull/22.diff","patch_url":"https://github.com/alphagov/tech-docs-template/pull/22.patch","issue_url":"https://api.github.com/repos/alphagov/tech-docs-template/issues/22","number":22,"state":"open","locked":false,"title":"Automatically linkify images","user":{"login":"mcmillan","id":1315466,"avatar_url":"https://avatars.githubusercontent.com/u/1315466?v=3","gravatar_id":"","url":"https://api.github.com/users/mcmillan","html_url":"https://github.com/mcmillan","followers_url":"https://api.github.com/users/mcmillan/followers","following_url":"https://api.github.com/users/mcmillan/following{/other_user}","gists_url":"https://api.github.com/users/mcmillan/gists{/gist_id}","starred_url":"https://api.github.com/users/mcmillan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcmillan/subscriptions","organizations_url":"https://api.github.com/users/mcmillan/orgs","repos_url":"https://api.github.com/users/mcmillan/repos","events_url":"https://api.github.com/users/mcmillan/events{/privacy}","received_events_url":"https://api.github.com/users/mcmillan/received_events","type":"User","site_admin":false},"body":"It might be nice for us to automatically wrap images in a link, so if\nthey're shrunk for whatever reason they can be clicked on to show a\nfull-resolution version. This does just that.\n\nThere's not an option built in to Redcarpet which allows us to do this,\nso this adds a custom Redcarpet renderer which wraps up images in an <a>\ntag.","created_at":"2016-12-02T15:14:27Z","updated_at":"2016-12-05T11:59:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e603efa32ed8ba76b80862fa58df524e6f534b92","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/22/commits","review_comments_url":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/22/comments","review_comment_url":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/tech-docs-template/issues/22/comments","statuses_url":"https://api.github.com/repos/alphagov/tech-docs-template/statuses/72dc8a8339b9c1d14717220bc058b95e68093c11","head":{"label":"alphagov:automatically-link-images","ref":"automatically-link-images","sha":"72dc8a8339b9c1d14717220bc058b95e68093c11","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":72197505,"name":"tech-docs-template","full_name":"alphagov/tech-docs-template","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/tech-docs-template","description":null,"fork":false,"url":"https://api.github.com/repos/alphagov/tech-docs-template","forks_url":"https://api.github.com/repos/alphagov/tech-docs-template/forks","keys_url":"https://api.github.com/repos/alphagov/tech-docs-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tech-docs-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tech-docs-template/teams","hooks_url":"https://api.github.com/repos/alphagov/tech-docs-template/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tech-docs-template/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tech-docs-template/events","assignees_url":"https://api.github.com/repos/alphagov/tech-docs-template/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tech-docs-template/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tech-docs-template/tags","blobs_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tech-docs-template/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tech-docs-template/languages","stargazers_url":"https://api.github.com/repos/alphagov/tech-docs-template/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tech-docs-template/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tech-docs-template/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tech-docs-template/subscription","commits_url":"https://api.github.com/repos/alphagov/tech-docs-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tech-docs-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tech-docs-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tech-docs-template/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tech-docs-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tech-docs-template/merges","archive_url":"https://api.github.com/repos/alphagov/tech-docs-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tech-docs-template/downloads","issues_url":"https://api.github.com/repos/alphagov/tech-docs-template/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tech-docs-template/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tech-docs-template/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tech-docs-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tech-docs-template/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tech-docs-template/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/tech-docs-template/deployments","created_at":"2016-10-28T10:16:46Z","updated_at":"2016-11-23T13:23:09Z","pushed_at":"2016-12-05T11:56:41Z","git_url":"git://github.com/alphagov/tech-docs-template.git","ssh_url":"git@github.com:alphagov/tech-docs-template.git","clone_url":"https://github.com/alphagov/tech-docs-template.git","svn_url":"https://github.com/alphagov/tech-docs-template","homepage":null,"size":391,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"89188e79c736f64fbf8b5daf8e51628cab891156","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":72197505,"name":"tech-docs-template","full_name":"alphagov/tech-docs-template","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/tech-docs-template","description":null,"fork":false,"url":"https://api.github.com/repos/alphagov/tech-docs-template","forks_url":"https://api.github.com/repos/alphagov/tech-docs-template/forks","keys_url":"https://api.github.com/repos/alphagov/tech-docs-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tech-docs-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tech-docs-template/teams","hooks_url":"https://api.github.com/repos/alphagov/tech-docs-template/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tech-docs-template/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tech-docs-template/events","assignees_url":"https://api.github.com/repos/alphagov/tech-docs-template/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tech-docs-template/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tech-docs-template/tags","blobs_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tech-docs-template/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tech-docs-template/languages","stargazers_url":"https://api.github.com/repos/alphagov/tech-docs-template/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tech-docs-template/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tech-docs-template/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tech-docs-template/subscription","commits_url":"https://api.github.com/repos/alphagov/tech-docs-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tech-docs-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tech-docs-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tech-docs-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tech-docs-template/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tech-docs-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tech-docs-template/merges","archive_url":"https://api.github.com/repos/alphagov/tech-docs-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tech-docs-template/downloads","issues_url":"https://api.github.com/repos/alphagov/tech-docs-template/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tech-docs-template/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tech-docs-template/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tech-docs-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tech-docs-template/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tech-docs-template/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/tech-docs-template/deployments","created_at":"2016-10-28T10:16:46Z","updated_at":"2016-11-23T13:23:09Z","pushed_at":"2016-12-05T11:56:41Z","git_url":"git://github.com/alphagov/tech-docs-template.git","ssh_url":"git@github.com:alphagov/tech-docs-template.git","clone_url":"https://github.com/alphagov/tech-docs-template.git","svn_url":"https://github.com/alphagov/tech-docs-template","homepage":null,"size":391,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/22"},"html":{"href":"https://github.com/alphagov/tech-docs-template/pull/22"},"issue":{"href":"https://api.github.com/repos/alphagov/tech-docs-template/issues/22"},"comments":{"href":"https://api.github.com/repos/alphagov/tech-docs-template/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/tech-docs-template/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/tech-docs-template/statuses/72dc8a8339b9c1d14717220bc058b95e68093c11"}}}}
{"actor":{"display_login":"thehenster"}}