{"action":"opened","issue":{"url":"https://api.github.com/repos/gajus/gitdown/issues/48","repository_url":"https://api.github.com/repos/gajus/gitdown","labels_url":"https://api.github.com/repos/gajus/gitdown/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/gajus/gitdown/issues/48/comments","events_url":"https://api.github.com/repos/gajus/gitdown/issues/48/events","html_url":"https://github.com/gajus/gitdown/issues/48","id":170274391,"number":48,"title":"Add an option to \"include\" function to increment headings","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gajus/gitdown/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T21:23:07Z","updated_at":"2016-08-09T21:23:07Z","closed_at":null,"body":"Add an option to the [include file](https://github.com/gajus/gitdown/tree/fab31aa75a95b0e9fa4b8d474ad42e853e8bf255#features-include-file) function that would increment heading size of the document being included to the size of the host section heading.\r\n\r\nExample:\r\n\r\nSource `README.md`:\r\n\r\n```markdown\r\n# README\r\n\r\n## Section where LICENSE is included\r\n\r\n{\"gitdown\": \"include\", \"file\": \"./LICENSE.md\",\"adjustHeading\":\"contain\"}\r\n```\r\n\r\nSource `LICENSE.md`:\r\n\r\n```markdown\r\n# LICENSE\r\n\r\nFoo\r\n\r\n## bar\r\n\r\nBar\r\n```\r\n\r\nCurrent output:\r\n\r\n```markdown\r\n# README\r\n\r\n## Section where LICENSE is included\r\n\r\n# LICENSE\r\n\r\nFoo\r\n\r\n## bar\r\n\r\nBar\r\n```\r\n\r\nDesired output:\r\n\r\n```markdown\r\n# README\r\n\r\n## Section where LICENSE is included\r\n\r\n### LICENSE\r\n\r\nFoo\r\n\r\n### bar\r\n\r\nBar\r\n```"}}
{"actor":{"display_login":"gajus"}}