{"action":"closed","issue":{"url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/38","labels_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/38/comments","events_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/38/events","html_url":"https://github.com/Knagis/CommonMark.NET/issues/38","id":75839714,"number":38,"title":"Advice please - offset heading levels","user":{"login":"dornstein","id":8538095,"avatar_url":"https://avatars.githubusercontent.com/u/8538095?v=3","gravatar_id":"","url":"https://api.github.com/users/dornstein","html_url":"https://github.com/dornstein","followers_url":"https://api.github.com/users/dornstein/followers","following_url":"https://api.github.com/users/dornstein/following{/other_user}","gists_url":"https://api.github.com/users/dornstein/gists{/gist_id}","starred_url":"https://api.github.com/users/dornstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dornstein/subscriptions","organizations_url":"https://api.github.com/users/dornstein/orgs","repos_url":"https://api.github.com/users/dornstein/repos","events_url":"https://api.github.com/users/dornstein/events{/privacy}","received_events_url":"https://api.github.com/users/dornstein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Knagis/CommonMark.NET/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T04:22:42Z","updated_at":"2015-06-26T15:02:26Z","closed_at":"2015-06-26T15:02:26Z","body":"I'm currently using CommonMark.NET and I have a scenario I'm trying to enable, but I'm not sure how to approach.  In short, I need to be able to offset the levels of the generated heading levels.  Normally when I run a string through I expect a '#' to generate an H1 and '##' to generate H2, etc.  But sometimes I'm going to be embedding the generated HTML into a context in which there is already an H1 (or an H2, etc.).  So what I'd ideally like is some way to pass in a headingOffsetLevel that would by default be 0 but I could pass in a 1 to make '#' generate H2s, a 2 to make '#' generate H3s, etc.\r\n\r\nI haven't gone into the CommonMark code yet to try to understand how to approach this.  I'd appreciate any input about the best way to approach this.  Assuming such a magic parameter isn't already built in, would there be a best way to leverage one of the extensibility mechanisms for this?"}}