{"action":"created","issue":{"url":"https://api.github.com/repos/gettalong/kramdown/issues/302","repository_url":"https://api.github.com/repos/gettalong/kramdown","labels_url":"https://api.github.com/repos/gettalong/kramdown/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/gettalong/kramdown/issues/302/comments","events_url":"https://api.github.com/repos/gettalong/kramdown/issues/302/events","html_url":"https://github.com/gettalong/kramdown/issues/302","id":128762593,"number":302,"title":"Anchors of multiple code blocks have duplicates","user":{"login":"MartinThoma","id":1658117,"avatar_url":"https://avatars.githubusercontent.com/u/1658117?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinThoma","html_url":"https://github.com/MartinThoma","followers_url":"https://api.github.com/users/MartinThoma/followers","following_url":"https://api.github.com/users/MartinThoma/following{/other_user}","gists_url":"https://api.github.com/users/MartinThoma/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinThoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinThoma/subscriptions","organizations_url":"https://api.github.com/users/MartinThoma/orgs","repos_url":"https://api.github.com/users/MartinThoma/repos","events_url":"https://api.github.com/users/MartinThoma/events{/privacy}","received_events_url":"https://api.github.com/users/MartinThoma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gettalong/kramdown/labels/question","name":"question","color":"bfdadc"}],"state":"closed","locked":false,"assignee":{"login":"gettalong","id":4104,"avatar_url":"https://avatars.githubusercontent.com/u/4104?v=3","gravatar_id":"","url":"https://api.github.com/users/gettalong","html_url":"https://github.com/gettalong","followers_url":"https://api.github.com/users/gettalong/followers","following_url":"https://api.github.com/users/gettalong/following{/other_user}","gists_url":"https://api.github.com/users/gettalong/gists{/gist_id}","starred_url":"https://api.github.com/users/gettalong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gettalong/subscriptions","organizations_url":"https://api.github.com/users/gettalong/orgs","repos_url":"https://api.github.com/users/gettalong/repos","events_url":"https://api.github.com/users/gettalong/events{/privacy}","received_events_url":"https://api.github.com/users/gettalong/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-01-26T08:58:25Z","updated_at":"2016-02-16T18:17:07Z","closed_at":"2016-02-16T18:15:08Z","body":"Kramdown / GFM with the name and id `n[line number]` to fenced code blocks (e.g. [here](https://martin-thoma.com/analyzing-pypi-metadata-2/#n1)). However, when there are two fenced code block both get this naming scheme.\r\n\r\n**The problem**: Obviously, this results in duplicate ids / anchors not working.\r\n\r\n**The fix**: For every code block except the first, use the naming scheme `n[line number]-[code block]` or something similar. I suggest to exclude the first one to prevent existing links from breaking."},"comment":{"url":"https://api.github.com/repos/gettalong/kramdown/issues/comments/184807914","html_url":"https://github.com/gettalong/kramdown/issues/302#issuecomment-184807914","issue_url":"https://api.github.com/repos/gettalong/kramdown/issues/302","id":184807914,"user":{"login":"MartinThoma","id":1658117,"avatar_url":"https://avatars.githubusercontent.com/u/1658117?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinThoma","html_url":"https://github.com/MartinThoma","followers_url":"https://api.github.com/users/MartinThoma/followers","following_url":"https://api.github.com/users/MartinThoma/following{/other_user}","gists_url":"https://api.github.com/users/MartinThoma/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinThoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinThoma/subscriptions","organizations_url":"https://api.github.com/users/MartinThoma/orgs","repos_url":"https://api.github.com/users/MartinThoma/repos","events_url":"https://api.github.com/users/MartinThoma/events{/privacy}","received_events_url":"https://api.github.com/users/MartinThoma/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T18:17:07Z","updated_at":"2016-02-16T18:17:07Z","body":"It was answered and my problem is fixed. Thank you very much!"}}