{"action":"created","issue":{"url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/44","labels_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/44/comments","events_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/44/events","html_url":"https://github.com/Knagis/CommonMark.NET/issues/44","id":107573849,"number":44,"title":"Add option to include ID in headers","user":{"login":"dscoduc","id":5335342,"avatar_url":"https://avatars.githubusercontent.com/u/5335342?v=3","gravatar_id":"","url":"https://api.github.com/users/dscoduc","html_url":"https://github.com/dscoduc","followers_url":"https://api.github.com/users/dscoduc/followers","following_url":"https://api.github.com/users/dscoduc/following{/other_user}","gists_url":"https://api.github.com/users/dscoduc/gists{/gist_id}","starred_url":"https://api.github.com/users/dscoduc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscoduc/subscriptions","organizations_url":"https://api.github.com/users/dscoduc/orgs","repos_url":"https://api.github.com/users/dscoduc/repos","events_url":"https://api.github.com/users/dscoduc/events{/privacy}","received_events_url":"https://api.github.com/users/dscoduc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-21T18:46:19Z","updated_at":"2015-09-21T19:21:41Z","closed_at":null,"body":"Markdown pages that contains links which point to headers don't convert correctly.  The links are \r\ntranslated correctly but the headers don't get the ID value in order for the links to hook up correctly.\r\n\r\nExample of source:\r\n```\r\n## Table of Contents\r\n* **[Solution Overview](#solution-overview)**\r\n\r\n## Solution Overview\r\n```\r\nExample of desired results:\r\n```\r\n<h2>Table of Contents</h2>\r\n<ul>\r\n    <li><a ref=\"#solution-overview\">Solution Overview</a></li>\r\n</ul>\r\n\r\n<h2 id=\"soluton-overview>Solution Overview</h2>\r\n```"},"comment":{"url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/comments/142083963","html_url":"https://github.com/Knagis/CommonMark.NET/issues/44#issuecomment-142083963","issue_url":"https://api.github.com/repos/Knagis/CommonMark.NET/issues/44","id":142083963,"user":{"login":"Knagis","id":8700285,"avatar_url":"https://avatars.githubusercontent.com/u/8700285?v=3","gravatar_id":"","url":"https://api.github.com/users/Knagis","html_url":"https://github.com/Knagis","followers_url":"https://api.github.com/users/Knagis/followers","following_url":"https://api.github.com/users/Knagis/following{/other_user}","gists_url":"https://api.github.com/users/Knagis/gists{/gist_id}","starred_url":"https://api.github.com/users/Knagis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Knagis/subscriptions","organizations_url":"https://api.github.com/users/Knagis/orgs","repos_url":"https://api.github.com/users/Knagis/repos","events_url":"https://api.github.com/users/Knagis/events{/privacy}","received_events_url":"https://api.github.com/users/Knagis/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T19:21:40Z","updated_at":"2015-09-21T19:21:40Z","body":"This behavior is according to the specification:\r\n<http://spec.commonmark.org/dingus/?text=%23%23%20Table%20of%20Contents%0A*%20**%5BSolution%20Overview%5D(%23solution-overview)**%0A%0A%23%23%20Solution%20Overview> \r\n\r\nSee also the discussion on [talk.commonmark.org](http://talk.commonmark.org/t/feature-request-automatically-generated-ids-for-headers/115).\r\n\r\nWhat you can do is provide a custom [HtmlFormatter](https://github.com/Knagis/CommonMark.NET/wiki#htmlformatter) implementation that would add the `id` attributes to header elements."}}