{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/417","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/417/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/417/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/417/events","html_url":"https://github.com/asciidoctor/asciidoctor/issues/417","id":15383927,"number":417,"title":"Enhance the link macro to support linking to a relative AsciiDoc document","user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/labels/enhancement","name":"enhancement","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/milestones/7","html_url":"https://github.com/asciidoctor/asciidoctor/milestones/v0.1.4","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor/milestones/7/labels","id":341624,"number":7,"title":"v0.1.4","description":"","creator":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":92,"state":"closed","created_at":"2013-05-25T06:49:58Z","updated_at":"2014-07-16T02:39:16Z","due_on":null,"closed_at":"2013-09-05T22:56:25Z"},"comments":26,"created_at":"2013-06-11T05:44:49Z","updated_at":"2015-09-26T20:57:53Z","closed_at":"2013-08-21T06:51:58Z","body":"Enhance the link macro so it can be used to link to a relative AsciiDoc document. This is a special type of link because the target extension needs to be adjusted according to the backend.\r\n\r\n* When the source document is rendered as HTML, the link should point to another HTML document.\r\n* When the source document is rendered to DocBook, the link should point to another DocBook document. \r\n* Ideally, when the source document is displayed on GitHub, the link should reference the other AsciiDoc document (i.e., the target is unaltered).\r\n\r\nGiven\r\n```\r\nlink:other-document.asciidoc[]\r\n```\r\n\r\nWhen rendered as HTML, the expected output is:\r\n\r\n```\r\n<a href=\"other-document.html\">other-document.html</a>\r\n```\r\n\r\nWhen rendered as DocBook, the expected output is:\r\n\r\n```\r\n<ulink url=\"other-document.xml\">other-document.xml</ulink>\r\n```\r\n\r\nWhen rendered on GitHub, the expected output is:\r\n\r\n```\r\n<a href=\"other-document.asciidoc\">other-document.asciidoc</a>\r\n```\r\n\r\nThe link macro may require the use of an extra hint (e.g., attribute) that activates this feature."},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/comments/143495426","html_url":"https://github.com/asciidoctor/asciidoctor/issues/417#issuecomment-143495426","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/417","id":143495426,"user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T20:57:53Z","updated_at":"2015-09-26T20:57:53Z","body":"@oncletom Yes, this is available in Asciidoctor today. Note that there are some fixes to this feature that are waiting on the 1.5.3 release (notably #844)."}}