{"action":"created","comment":{"url":"https://api.github.com/repos/miekg/mmark/pulls/comments/42320125","id":42320125,"diff_hunk":"@@ -738,12 +784,6 @@ func (p *parser) inlineHtmlComment(out *bytes.Buffer, data []byte) int {\n \n // '<' when tags or autolinks are allowed\n func leftAngle(p *parser, out *bytes.Buffer, data []byte, offset int) int {\n-\tif p.flags&EXTENSION_INCLUDE != 0 {","path":"inline.go","position":97,"original_position":97,"commit_id":"b4f5f94897fc8646cd91fcac9f178b42d91d2345","original_commit_id":"b4f5f94897fc8646cd91fcac9f178b42d91d2345","user":{"login":"miekg","id":353371,"avatar_url":"https://avatars.githubusercontent.com/u/353371?v=3","gravatar_id":"","url":"https://api.github.com/users/miekg","html_url":"https://github.com/miekg","followers_url":"https://api.github.com/users/miekg/followers","following_url":"https://api.github.com/users/miekg/following{/other_user}","gists_url":"https://api.github.com/users/miekg/gists{/gist_id}","starred_url":"https://api.github.com/users/miekg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miekg/subscriptions","organizations_url":"https://api.github.com/users/miekg/orgs","repos_url":"https://api.github.com/users/miekg/repos","events_url":"https://api.github.com/users/miekg/events{/privacy}","received_events_url":"https://api.github.com/users/miekg/received_events","type":"User","site_admin":false},"body":"make sense now.","created_at":"2015-10-18T11:47:52Z","updated_at":"2015-10-18T11:47:52Z","html_url":"https://github.com/miekg/mmark/pull/37#discussion_r42320125","pull_request_url":"https://api.github.com/repos/miekg/mmark/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/miekg/mmark/pulls/comments/42320125"},"html":{"href":"https://github.com/miekg/mmark/pull/37#discussion_r42320125"},"pull_request":{"href":"https://api.github.com/repos/miekg/mmark/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/miekg/mmark/pulls/37","id":47992606,"html_url":"https://github.com/miekg/mmark/pull/37","diff_url":"https://github.com/miekg/mmark/pull/37.diff","patch_url":"https://github.com/miekg/mmark/pull/37.patch","issue_url":"https://api.github.com/repos/miekg/mmark/issues/37","number":37,"state":"open","locked":false,"title":"Implement relative includes.","user":{"login":"egonelbre","id":192964,"avatar_url":"https://avatars.githubusercontent.com/u/192964?v=3","gravatar_id":"","url":"https://api.github.com/users/egonelbre","html_url":"https://github.com/egonelbre","followers_url":"https://api.github.com/users/egonelbre/followers","following_url":"https://api.github.com/users/egonelbre/following{/other_user}","gists_url":"https://api.github.com/users/egonelbre/gists{/gist_id}","starred_url":"https://api.github.com/users/egonelbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egonelbre/subscriptions","organizations_url":"https://api.github.com/users/egonelbre/orgs","repos_url":"https://api.github.com/users/egonelbre/repos","events_url":"https://api.github.com/users/egonelbre/events{/privacy}","received_events_url":"https://api.github.com/users/egonelbre/received_events","type":"User","site_admin":false},"body":"Now this works as with relative imports.\r\n\r\n```\r\ntoc.md\r\nchapter1/toc.md\r\nchapter1/A.md\r\n```\r\n\r\nWhere `toc.md` contains:\r\n\r\n```\r\n# Chapter 1\r\n{{chapter1/toc.md}}\r\n```\r\n\r\nand  `chapter1/toc.md`:\r\n\r\n```\r\n## A\r\n{{A.md}}\r\n```\r\n\r\nWhen specifying `{{/xyz.md}}` will refer to the folder where main file is located. `{{/../xyz.md}}` will resolve to `{{/xyz.md}}`, because it is disallowed to go outside of the root folder.\r\n\r\nFixes #36 ","created_at":"2015-10-17T18:42:40Z","updated_at":"2015-10-18T11:47:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"357b43573b94795749079d7af345191ca0ff965c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/miekg/mmark/pulls/37/commits","review_comments_url":"https://api.github.com/repos/miekg/mmark/pulls/37/comments","review_comment_url":"https://api.github.com/repos/miekg/mmark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/miekg/mmark/issues/37/comments","statuses_url":"https://api.github.com/repos/miekg/mmark/statuses/b4f5f94897fc8646cd91fcac9f178b42d91d2345","head":{"label":"egonelbre:includes","ref":"includes","sha":"b4f5f94897fc8646cd91fcac9f178b42d91d2345","user":{"login":"egonelbre","id":192964,"avatar_url":"https://avatars.githubusercontent.com/u/192964?v=3","gravatar_id":"","url":"https://api.github.com/users/egonelbre","html_url":"https://github.com/egonelbre","followers_url":"https://api.github.com/users/egonelbre/followers","following_url":"https://api.github.com/users/egonelbre/following{/other_user}","gists_url":"https://api.github.com/users/egonelbre/gists{/gist_id}","starred_url":"https://api.github.com/users/egonelbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egonelbre/subscriptions","organizations_url":"https://api.github.com/users/egonelbre/orgs","repos_url":"https://api.github.com/users/egonelbre/repos","events_url":"https://api.github.com/users/egonelbre/events{/privacy}","received_events_url":"https://api.github.com/users/egonelbre/received_events","type":"User","site_admin":false},"repo":{"id":44402863,"name":"mmark","full_name":"egonelbre/mmark","owner":{"login":"egonelbre","id":192964,"avatar_url":"https://avatars.githubusercontent.com/u/192964?v=3","gravatar_id":"","url":"https://api.github.com/users/egonelbre","html_url":"https://github.com/egonelbre","followers_url":"https://api.github.com/users/egonelbre/followers","following_url":"https://api.github.com/users/egonelbre/following{/other_user}","gists_url":"https://api.github.com/users/egonelbre/gists{/gist_id}","starred_url":"https://api.github.com/users/egonelbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egonelbre/subscriptions","organizations_url":"https://api.github.com/users/egonelbre/orgs","repos_url":"https://api.github.com/users/egonelbre/repos","events_url":"https://api.github.com/users/egonelbre/events{/privacy}","received_events_url":"https://api.github.com/users/egonelbre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/egonelbre/mmark","description":"Mmark: a powerful markdown processor in Go geared for the IETF","fork":true,"url":"https://api.github.com/repos/egonelbre/mmark","forks_url":"https://api.github.com/repos/egonelbre/mmark/forks","keys_url":"https://api.github.com/repos/egonelbre/mmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/egonelbre/mmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/egonelbre/mmark/teams","hooks_url":"https://api.github.com/repos/egonelbre/mmark/hooks","issue_events_url":"https://api.github.com/repos/egonelbre/mmark/issues/events{/number}","events_url":"https://api.github.com/repos/egonelbre/mmark/events","assignees_url":"https://api.github.com/repos/egonelbre/mmark/assignees{/user}","branches_url":"https://api.github.com/repos/egonelbre/mmark/branches{/branch}","tags_url":"https://api.github.com/repos/egonelbre/mmark/tags","blobs_url":"https://api.github.com/repos/egonelbre/mmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/egonelbre/mmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/egonelbre/mmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/egonelbre/mmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/egonelbre/mmark/statuses/{sha}","languages_url":"https://api.github.com/repos/egonelbre/mmark/languages","stargazers_url":"https://api.github.com/repos/egonelbre/mmark/stargazers","contributors_url":"https://api.github.com/repos/egonelbre/mmark/contributors","subscribers_url":"https://api.github.com/repos/egonelbre/mmark/subscribers","subscription_url":"https://api.github.com/repos/egonelbre/mmark/subscription","commits_url":"https://api.github.com/repos/egonelbre/mmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/egonelbre/mmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/egonelbre/mmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/egonelbre/mmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/egonelbre/mmark/contents/{+path}","compare_url":"https://api.github.com/repos/egonelbre/mmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/egonelbre/mmark/merges","archive_url":"https://api.github.com/repos/egonelbre/mmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/egonelbre/mmark/downloads","issues_url":"https://api.github.com/repos/egonelbre/mmark/issues{/number}","pulls_url":"https://api.github.com/repos/egonelbre/mmark/pulls{/number}","milestones_url":"https://api.github.com/repos/egonelbre/mmark/milestones{/number}","notifications_url":"https://api.github.com/repos/egonelbre/mmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/egonelbre/mmark/labels{/name}","releases_url":"https://api.github.com/repos/egonelbre/mmark/releases{/id}","created_at":"2015-10-16T18:14:28Z","updated_at":"2015-10-16T18:14:30Z","pushed_at":"2015-10-17T18:39:47Z","git_url":"git://github.com/egonelbre/mmark.git","ssh_url":"git@github.com:egonelbre/mmark.git","clone_url":"https://github.com/egonelbre/mmark.git","svn_url":"https://github.com/egonelbre/mmark","homepage":"http://miek.nl/tag/mmark.html","size":3392,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"miekg:master","ref":"master","sha":"fdbd556f12b3d792ef3451338f89c6e4ada82a74","user":{"login":"miekg","id":353371,"avatar_url":"https://avatars.githubusercontent.com/u/353371?v=3","gravatar_id":"","url":"https://api.github.com/users/miekg","html_url":"https://github.com/miekg","followers_url":"https://api.github.com/users/miekg/followers","following_url":"https://api.github.com/users/miekg/following{/other_user}","gists_url":"https://api.github.com/users/miekg/gists{/gist_id}","starred_url":"https://api.github.com/users/miekg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miekg/subscriptions","organizations_url":"https://api.github.com/users/miekg/orgs","repos_url":"https://api.github.com/users/miekg/repos","events_url":"https://api.github.com/users/miekg/events{/privacy}","received_events_url":"https://api.github.com/users/miekg/received_events","type":"User","site_admin":false},"repo":{"id":26316801,"name":"mmark","full_name":"miekg/mmark","owner":{"login":"miekg","id":353371,"avatar_url":"https://avatars.githubusercontent.com/u/353371?v=3","gravatar_id":"","url":"https://api.github.com/users/miekg","html_url":"https://github.com/miekg","followers_url":"https://api.github.com/users/miekg/followers","following_url":"https://api.github.com/users/miekg/following{/other_user}","gists_url":"https://api.github.com/users/miekg/gists{/gist_id}","starred_url":"https://api.github.com/users/miekg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miekg/subscriptions","organizations_url":"https://api.github.com/users/miekg/orgs","repos_url":"https://api.github.com/users/miekg/repos","events_url":"https://api.github.com/users/miekg/events{/privacy}","received_events_url":"https://api.github.com/users/miekg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miekg/mmark","description":"Mmark: a powerful markdown processor in Go geared for the IETF","fork":true,"url":"https://api.github.com/repos/miekg/mmark","forks_url":"https://api.github.com/repos/miekg/mmark/forks","keys_url":"https://api.github.com/repos/miekg/mmark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miekg/mmark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miekg/mmark/teams","hooks_url":"https://api.github.com/repos/miekg/mmark/hooks","issue_events_url":"https://api.github.com/repos/miekg/mmark/issues/events{/number}","events_url":"https://api.github.com/repos/miekg/mmark/events","assignees_url":"https://api.github.com/repos/miekg/mmark/assignees{/user}","branches_url":"https://api.github.com/repos/miekg/mmark/branches{/branch}","tags_url":"https://api.github.com/repos/miekg/mmark/tags","blobs_url":"https://api.github.com/repos/miekg/mmark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miekg/mmark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miekg/mmark/git/refs{/sha}","trees_url":"https://api.github.com/repos/miekg/mmark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miekg/mmark/statuses/{sha}","languages_url":"https://api.github.com/repos/miekg/mmark/languages","stargazers_url":"https://api.github.com/repos/miekg/mmark/stargazers","contributors_url":"https://api.github.com/repos/miekg/mmark/contributors","subscribers_url":"https://api.github.com/repos/miekg/mmark/subscribers","subscription_url":"https://api.github.com/repos/miekg/mmark/subscription","commits_url":"https://api.github.com/repos/miekg/mmark/commits{/sha}","git_commits_url":"https://api.github.com/repos/miekg/mmark/git/commits{/sha}","comments_url":"https://api.github.com/repos/miekg/mmark/comments{/number}","issue_comment_url":"https://api.github.com/repos/miekg/mmark/issues/comments{/number}","contents_url":"https://api.github.com/repos/miekg/mmark/contents/{+path}","compare_url":"https://api.github.com/repos/miekg/mmark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miekg/mmark/merges","archive_url":"https://api.github.com/repos/miekg/mmark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miekg/mmark/downloads","issues_url":"https://api.github.com/repos/miekg/mmark/issues{/number}","pulls_url":"https://api.github.com/repos/miekg/mmark/pulls{/number}","milestones_url":"https://api.github.com/repos/miekg/mmark/milestones{/number}","notifications_url":"https://api.github.com/repos/miekg/mmark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miekg/mmark/labels{/name}","releases_url":"https://api.github.com/repos/miekg/mmark/releases{/id}","created_at":"2014-11-07T11:23:51Z","updated_at":"2015-10-16T22:09:34Z","pushed_at":"2015-10-18T09:13:51Z","git_url":"git://github.com/miekg/mmark.git","ssh_url":"git@github.com:miekg/mmark.git","clone_url":"https://github.com/miekg/mmark.git","svn_url":"https://github.com/miekg/mmark","homepage":"http://miek.nl/tag/mmark.html","size":3392,"stargazers_count":51,"watchers_count":51,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":9,"forks":6,"open_issues":9,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/miekg/mmark/pulls/37"},"html":{"href":"https://github.com/miekg/mmark/pull/37"},"issue":{"href":"https://api.github.com/repos/miekg/mmark/issues/37"},"comments":{"href":"https://api.github.com/repos/miekg/mmark/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/miekg/mmark/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/miekg/mmark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/miekg/mmark/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/miekg/mmark/statuses/b4f5f94897fc8646cd91fcac9f178b42d91d2345"}}}}