{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3266","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3266/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3266/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3266/events","html_url":"https://github.com/asciidoctor/asciidoctor/issues/3266","id":433685541,"node_id":"MDU6SXNzdWU0MzM2ODU1NDE=","number":3266,"title":":toc: doesn't work when there are one or more empty lines between header and :toc:.","user":{"login":"sindzicat","id":33900895,"node_id":"MDQ6VXNlcjMzOTAwODk1","avatar_url":"https://avatars0.githubusercontent.com/u/33900895?v=4","gravatar_id":"","url":"https://api.github.com/users/sindzicat","html_url":"https://github.com/sindzicat","followers_url":"https://api.github.com/users/sindzicat/followers","following_url":"https://api.github.com/users/sindzicat/following{/other_user}","gists_url":"https://api.github.com/users/sindzicat/gists{/gist_id}","starred_url":"https://api.github.com/users/sindzicat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindzicat/subscriptions","organizations_url":"https://api.github.com/users/sindzicat/orgs","repos_url":"https://api.github.com/users/sindzicat/repos","events_url":"https://api.github.com/users/sindzicat/events{/privacy}","received_events_url":"https://api.github.com/users/sindzicat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mojavelinux","id":79351,"node_id":"MDQ6VXNlcjc5MzUx","avatar_url":"https://avatars2.githubusercontent.com/u/79351?v=4","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},"assignees":[{"login":"mojavelinux","id":79351,"node_id":"MDQ6VXNlcjc5MzUx","avatar_url":"https://avatars2.githubusercontent.com/u/79351?v=4","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/13","html_url":"https://github.com/asciidoctor/asciidoctor/milestone/13","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor/milestones/13/labels","id":445375,"node_id":"MDk6TWlsZXN0b25lNDQ1Mzc1","number":13,"title":"support","description":"Issues that are handled and resolved as support cases.","creator":{"login":"mojavelinux","id":79351,"node_id":"MDQ6VXNlcjc5MzUx","avatar_url":"https://avatars2.githubusercontent.com/u/79351?v=4","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":72,"closed_issues":246,"state":"open","created_at":"2013-10-04T07:40:24Z","updated_at":"2019-04-16T10:20:52Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2019-04-16T09:49:52Z","updated_at":"2019-04-16T11:35:11Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hello!\r\n\r\nWhen there are no any empty lines after document header, `:toc:` works fine:\r\n\r\n```\r\n= Header\r\n:toc:\r\n\r\n== subheader 1\r\n\r\n== subheader 2\r\n\r\nAsciidoctor version: {asciidoctor-version}\r\n```\r\n![image](https://user-images.githubusercontent.com/33900895/56199463-a217f600-6045-11e9-934d-3d29f6b37653.png)\r\n\r\nWhen there are one or more empty lines between header and `:toc:`, TOC doesn't work:\r\n\r\n```\r\n= Header\r\n\r\n:toc:\r\n\r\n== subheader 1\r\n\r\n== subheader 2\r\n\r\nAsciidoctor version: {asciidoctor-version}\r\n```\r\n![image](https://user-images.githubusercontent.com/33900895/56199574-d4c1ee80-6045-11e9-9638-f3a997d1601b.png)\r\n\r\n> **P.S.** I use Ruby version of Asciidoctor, but Javascirpt version has the same issue.\r\n\r\nBest regards,\r\nAndrey.\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/comments/483622890","html_url":"https://github.com/asciidoctor/asciidoctor/issues/3266#issuecomment-483622890","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor/issues/3266","id":483622890,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MzYyMjg5MA==","user":{"login":"mojavelinux","id":79351,"node_id":"MDQ6VXNlcjc5MzUx","avatar_url":"https://avatars2.githubusercontent.com/u/79351?v=4","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":"2019-04-16T11:35:11Z","updated_at":"2019-04-16T11:35:11Z","author_association":"MEMBER","body":"AsciiDoc has a clear idea of a header, like for instance in HTTP. The header sets document-wide settings. Below the header, it's just content. This is a very common pattern in tech, and hence why AsciiDoc adopted it. And the pattern predates me by many, many years."}}
{"actor":{"display_login":"mojavelinux"}}