{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/96","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/96/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/96/events","html_url":"https://github.com/asciidoctor/asciidoctor.js/issues/96","id":54627237,"number":96,"title":"doc.$header().$attr() does not return only header attributes","user":{"login":"nerk","id":5136501,"avatar_url":"https://avatars.githubusercontent.com/u/5136501?v=3","gravatar_id":"","url":"https://api.github.com/users/nerk","html_url":"https://github.com/nerk","followers_url":"https://api.github.com/users/nerk/followers","following_url":"https://api.github.com/users/nerk/following{/other_user}","gists_url":"https://api.github.com/users/nerk/gists{/gist_id}","starred_url":"https://api.github.com/users/nerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerk/subscriptions","organizations_url":"https://api.github.com/users/nerk/orgs","repos_url":"https://api.github.com/users/nerk/repos","events_url":"https://api.github.com/users/nerk/events{/privacy}","received_events_url":"https://api.github.com/users/nerk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-16T21:29:19Z","updated_at":"2015-10-13T04:55:44Z","closed_at":null,"body":"(This is most likely more of an issue with ruby asciidoctor. However, I am reporting it here because I only tried asciidoctor.js).\r\n\r\nIf each of the following snippets (containing an additional source code block not listed here) is rendered as a full document with header and  footer, the source code in the third snipped is not highlighted with 'prettify'. This is expected behavior because of the blank line after the title. The attribute is not considered a header attribute in this case.\r\n\r\n```\r\n:source-highlighter: prettify\r\n\r\n= Title\r\n```\r\n\r\n```\r\n= Title\r\n:source-highlighter: prettify\r\n```\r\n\r\n```\r\n= Title\r\n\r\n:source-highlighter: prettify\r\n```\r\n\r\nHowever, parsing the three document snippets and reading the attribute by invoking\r\n\r\n```\r\nvar h = doc.$header().$attr('source-highlighter');\r\n```\r\nor\r\n```\r\nvar h = doc.$attr('source-highlighter');\r\n```\r\n\r\nalways returns `prettify`. I think for the third case, it should not. Am I right or am I missing something?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/comments/147601182","html_url":"https://github.com/asciidoctor/asciidoctor.js/issues/96#issuecomment-147601182","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor.js/issues/96","id":147601182,"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-10-13T04:55:44Z","updated_at":"2015-10-13T04:55:44Z","body":"So your assumption will become true once 1.5.3 is released."}}