{"action":"opened","number":20,"pull_request":{"url":"https://api.github.com/repos/ianks/octodown/pulls/20","id":26777763,"html_url":"https://github.com/ianks/octodown/pull/20","diff_url":"https://github.com/ianks/octodown/pull/20.diff","patch_url":"https://github.com/ianks/octodown/pull/20.patch","issue_url":"https://api.github.com/repos/ianks/octodown/issues/20","number":20,"state":"open","locked":false,"title":"Add relative root path","user":{"login":"ianks","id":3303032,"avatar_url":"https://avatars.githubusercontent.com/u/3303032?v=3","gravatar_id":"","url":"https://api.github.com/users/ianks","html_url":"https://github.com/ianks","followers_url":"https://api.github.com/users/ianks/followers","following_url":"https://api.github.com/users/ianks/following{/other_user}","gists_url":"https://api.github.com/users/ianks/gists{/gist_id}","starred_url":"https://api.github.com/users/ianks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianks/subscriptions","organizations_url":"https://api.github.com/users/ianks/orgs","repos_url":"https://api.github.com/users/ianks/repos","events_url":"https://api.github.com/users/ianks/events{/privacy}","received_events_url":"https://api.github.com/users/ianks/received_events","type":"User","site_admin":false},"body":"This fixes an issue where local images would not render correctly in the browser. Only HTTP (external) images would be shown. This adds a step in the HTML pipeline which checks to see if the image is HTTP/HTTPS. If it is not, it assumes that the file is local, then rewrites the path to be relative to the *original* document root, not where the rendered file is located (some tmp dir).","created_at":"2015-01-03T01:37:23Z","updated_at":"2015-01-03T01:37:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62e13214099538c03389874759650c733137f11b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ianks/octodown/pulls/20/commits","review_comments_url":"https://api.github.com/repos/ianks/octodown/pulls/20/comments","review_comment_url":"https://api.github.com/repos/ianks/octodown/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ianks/octodown/issues/20/comments","statuses_url":"https://api.github.com/repos/ianks/octodown/statuses/879c4403a50c9e833a03e5f40e4377b713255f3e","head":{"label":"ianks:root","ref":"root","sha":"879c4403a50c9e833a03e5f40e4377b713255f3e","user":{"login":"ianks","id":3303032,"avatar_url":"https://avatars.githubusercontent.com/u/3303032?v=3","gravatar_id":"","url":"https://api.github.com/users/ianks","html_url":"https://github.com/ianks","followers_url":"https://api.github.com/users/ianks/followers","following_url":"https://api.github.com/users/ianks/following{/other_user}","gists_url":"https://api.github.com/users/ianks/gists{/gist_id}","starred_url":"https://api.github.com/users/ianks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianks/subscriptions","organizations_url":"https://api.github.com/users/ianks/orgs","repos_url":"https://api.github.com/users/ianks/repos","events_url":"https://api.github.com/users/ianks/events{/privacy}","received_events_url":"https://api.github.com/users/ianks/received_events","type":"User","site_admin":false},"repo":{"id":28029170,"name":"octodown","full_name":"ianks/octodown","owner":{"login":"ianks","id":3303032,"avatar_url":"https://avatars.githubusercontent.com/u/3303032?v=3","gravatar_id":"","url":"https://api.github.com/users/ianks","html_url":"https://github.com/ianks","followers_url":"https://api.github.com/users/ianks/followers","following_url":"https://api.github.com/users/ianks/following{/other_user}","gists_url":"https://api.github.com/users/ianks/gists{/gist_id}","starred_url":"https://api.github.com/users/ianks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianks/subscriptions","organizations_url":"https://api.github.com/users/ianks/orgs","repos_url":"https://api.github.com/users/ianks/repos","events_url":"https://api.github.com/users/ianks/events{/privacy}","received_events_url":"https://api.github.com/users/ianks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ianks/octodown","description":"Github markdown previewing straight from your shell.","fork":false,"url":"https://api.github.com/repos/ianks/octodown","forks_url":"https://api.github.com/repos/ianks/octodown/forks","keys_url":"https://api.github.com/repos/ianks/octodown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ianks/octodown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ianks/octodown/teams","hooks_url":"https://api.github.com/repos/ianks/octodown/hooks","issue_events_url":"https://api.github.com/repos/ianks/octodown/issues/events{/number}","events_url":"https://api.github.com/repos/ianks/octodown/events","assignees_url":"https://api.github.com/repos/ianks/octodown/assignees{/user}","branches_url":"https://api.github.com/repos/ianks/octodown/branches{/branch}","tags_url":"https://api.github.com/repos/ianks/octodown/tags","blobs_url":"https://api.github.com/repos/ianks/octodown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ianks/octodown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ianks/octodown/git/refs{/sha}","trees_url":"https://api.github.com/repos/ianks/octodown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ianks/octodown/statuses/{sha}","languages_url":"https://api.github.com/repos/ianks/octodown/languages","stargazers_url":"https://api.github.com/repos/ianks/octodown/stargazers","contributors_url":"https://api.github.com/repos/ianks/octodown/contributors","subscribers_url":"https://api.github.com/repos/ianks/octodown/subscribers","subscription_url":"https://api.github.com/repos/ianks/octodown/subscription","commits_url":"https://api.github.com/repos/ianks/octodown/commits{/sha}","git_commits_url":"https://api.github.com/repos/ianks/octodown/git/commits{/sha}","comments_url":"https://api.github.com/repos/ianks/octodown/comments{/number}","issue_comment_url":"https://api.github.com/repos/ianks/octodown/issues/comments/{number}","contents_url":"https://api.github.com/repos/ianks/octodown/contents/{+path}","compare_url":"https://api.github.com/repos/ianks/octodown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ianks/octodown/merges","archive_url":"https://api.github.com/repos/ianks/octodown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ianks/octodown/downloads","issues_url":"https://api.github.com/repos/ianks/octodown/issues{/number}","pulls_url":"https://api.github.com/repos/ianks/octodown/pulls{/number}","milestones_url":"https://api.github.com/repos/ianks/octodown/milestones{/number}","notifications_url":"https://api.github.com/repos/ianks/octodown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ianks/octodown/labels{/name}","releases_url":"https://api.github.com/repos/ianks/octodown/releases{/id}","created_at":"2014-12-15T09:16:23Z","updated_at":"2015-01-02T23:47:32Z","pushed_at":"2015-01-03T01:34:46Z","git_url":"git://github.com/ianks/octodown.git","ssh_url":"git@github.com:ianks/octodown.git","clone_url":"https://github.com/ianks/octodown.git","svn_url":"https://github.com/ianks/octodown","homepage":"","size":426,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"ianks:master","ref":"master","sha":"771a2cfe2b2249370d91257158f6f6f878df7672","user":{"login":"ianks","id":3303032,"avatar_url":"https://avatars.githubusercontent.com/u/3303032?v=3","gravatar_id":"","url":"https://api.github.com/users/ianks","html_url":"https://github.com/ianks","followers_url":"https://api.github.com/users/ianks/followers","following_url":"https://api.github.com/users/ianks/following{/other_user}","gists_url":"https://api.github.com/users/ianks/gists{/gist_id}","starred_url":"https://api.github.com/users/ianks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianks/subscriptions","organizations_url":"https://api.github.com/users/ianks/orgs","repos_url":"https://api.github.com/users/ianks/repos","events_url":"https://api.github.com/users/ianks/events{/privacy}","received_events_url":"https://api.github.com/users/ianks/received_events","type":"User","site_admin":false},"repo":{"id":28029170,"name":"octodown","full_name":"ianks/octodown","owner":{"login":"ianks","id":3303032,"avatar_url":"https://avatars.githubusercontent.com/u/3303032?v=3","gravatar_id":"","url":"https://api.github.com/users/ianks","html_url":"https://github.com/ianks","followers_url":"https://api.github.com/users/ianks/followers","following_url":"https://api.github.com/users/ianks/following{/other_user}","gists_url":"https://api.github.com/users/ianks/gists{/gist_id}","starred_url":"https://api.github.com/users/ianks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianks/subscriptions","organizations_url":"https://api.github.com/users/ianks/orgs","repos_url":"https://api.github.com/users/ianks/repos","events_url":"https://api.github.com/users/ianks/events{/privacy}","received_events_url":"https://api.github.com/users/ianks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ianks/octodown","description":"Github markdown previewing straight from your shell.","fork":false,"url":"https://api.github.com/repos/ianks/octodown","forks_url":"https://api.github.com/repos/ianks/octodown/forks","keys_url":"https://api.github.com/repos/ianks/octodown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ianks/octodown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ianks/octodown/teams","hooks_url":"https://api.github.com/repos/ianks/octodown/hooks","issue_events_url":"https://api.github.com/repos/ianks/octodown/issues/events{/number}","events_url":"https://api.github.com/repos/ianks/octodown/events","assignees_url":"https://api.github.com/repos/ianks/octodown/assignees{/user}","branches_url":"https://api.github.com/repos/ianks/octodown/branches{/branch}","tags_url":"https://api.github.com/repos/ianks/octodown/tags","blobs_url":"https://api.github.com/repos/ianks/octodown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ianks/octodown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ianks/octodown/git/refs{/sha}","trees_url":"https://api.github.com/repos/ianks/octodown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ianks/octodown/statuses/{sha}","languages_url":"https://api.github.com/repos/ianks/octodown/languages","stargazers_url":"https://api.github.com/repos/ianks/octodown/stargazers","contributors_url":"https://api.github.com/repos/ianks/octodown/contributors","subscribers_url":"https://api.github.com/repos/ianks/octodown/subscribers","subscription_url":"https://api.github.com/repos/ianks/octodown/subscription","commits_url":"https://api.github.com/repos/ianks/octodown/commits{/sha}","git_commits_url":"https://api.github.com/repos/ianks/octodown/git/commits{/sha}","comments_url":"https://api.github.com/repos/ianks/octodown/comments{/number}","issue_comment_url":"https://api.github.com/repos/ianks/octodown/issues/comments/{number}","contents_url":"https://api.github.com/repos/ianks/octodown/contents/{+path}","compare_url":"https://api.github.com/repos/ianks/octodown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ianks/octodown/merges","archive_url":"https://api.github.com/repos/ianks/octodown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ianks/octodown/downloads","issues_url":"https://api.github.com/repos/ianks/octodown/issues{/number}","pulls_url":"https://api.github.com/repos/ianks/octodown/pulls{/number}","milestones_url":"https://api.github.com/repos/ianks/octodown/milestones{/number}","notifications_url":"https://api.github.com/repos/ianks/octodown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ianks/octodown/labels{/name}","releases_url":"https://api.github.com/repos/ianks/octodown/releases{/id}","created_at":"2014-12-15T09:16:23Z","updated_at":"2015-01-02T23:47:32Z","pushed_at":"2015-01-03T01:34:46Z","git_url":"git://github.com/ianks/octodown.git","ssh_url":"git@github.com:ianks/octodown.git","clone_url":"https://github.com/ianks/octodown.git","svn_url":"https://github.com/ianks/octodown","homepage":"","size":426,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ianks/octodown/pulls/20"},"html":{"href":"https://github.com/ianks/octodown/pull/20"},"issue":{"href":"https://api.github.com/repos/ianks/octodown/issues/20"},"comments":{"href":"https://api.github.com/repos/ianks/octodown/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/ianks/octodown/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/ianks/octodown/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ianks/octodown/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/ianks/octodown/statuses/879c4403a50c9e833a03e5f40e4377b713255f3e"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":48,"deletions":1,"changed_files":4}}