{"action":"created","issue":{"url":"https://api.github.com/repos/gollum/gollum-lib/issues/183","repository_url":"https://api.github.com/repos/gollum/gollum-lib","labels_url":"https://api.github.com/repos/gollum/gollum-lib/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/gollum/gollum-lib/issues/183/comments","events_url":"https://api.github.com/repos/gollum/gollum-lib/issues/183/events","html_url":"https://github.com/gollum/gollum-lib/pull/183","id":118273830,"number":183,"title":"Allow setting max header level in TOC","user":{"login":"ztlpn","id":2301957,"avatar_url":"https://avatars.githubusercontent.com/u/2301957?v=3","gravatar_id":"","url":"https://api.github.com/users/ztlpn","html_url":"https://github.com/ztlpn","followers_url":"https://api.github.com/users/ztlpn/followers","following_url":"https://api.github.com/users/ztlpn/following{/other_user}","gists_url":"https://api.github.com/users/ztlpn/gists{/gist_id}","starred_url":"https://api.github.com/users/ztlpn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ztlpn/subscriptions","organizations_url":"https://api.github.com/users/ztlpn/orgs","repos_url":"https://api.github.com/users/ztlpn/repos","events_url":"https://api.github.com/users/ztlpn/events{/privacy}","received_events_url":"https://api.github.com/users/ztlpn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-22T16:41:51Z","updated_at":"2016-02-14T20:51:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gollum/gollum-lib/pulls/183","html_url":"https://github.com/gollum/gollum-lib/pull/183","diff_url":"https://github.com/gollum/gollum-lib/pull/183.diff","patch_url":"https://github.com/gollum/gollum-lib/pull/183.patch"},"body":"Hi! This PR implements gollum/gollum#650.\r\n`levels` attr is added to the `[[_TOC_]]` tag. Its value determines the maximum header level to appear in TOC.\r\n\r\nFor this to work with subpages I had to re-parse generated TOC html which is inelegant but I guess it is minimally invasive.\r\n\r\nAlso some empty `<ul>` tags are left in HTML but I did not bother fixing it because they are not rendered in browser and anyway the problem should go away after #176 is merged."},"comment":{"url":"https://api.github.com/repos/gollum/gollum-lib/issues/comments/183974366","html_url":"https://github.com/gollum/gollum-lib/pull/183#issuecomment-183974366","issue_url":"https://api.github.com/repos/gollum/gollum-lib/issues/183","id":183974366,"user":{"login":"bartkamphorst","id":571173,"avatar_url":"https://avatars.githubusercontent.com/u/571173?v=3","gravatar_id":"","url":"https://api.github.com/users/bartkamphorst","html_url":"https://github.com/bartkamphorst","followers_url":"https://api.github.com/users/bartkamphorst/followers","following_url":"https://api.github.com/users/bartkamphorst/following{/other_user}","gists_url":"https://api.github.com/users/bartkamphorst/gists{/gist_id}","starred_url":"https://api.github.com/users/bartkamphorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartkamphorst/subscriptions","organizations_url":"https://api.github.com/users/bartkamphorst/orgs","repos_url":"https://api.github.com/users/bartkamphorst/repos","events_url":"https://api.github.com/users/bartkamphorst/events{/privacy}","received_events_url":"https://api.github.com/users/bartkamphorst/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T20:51:19Z","updated_at":"2016-02-14T20:51:19Z","body":"Cool. @dometto Feel free to merge!"}}