{"action":"opened","issue":{"url":"https://api.github.com/repos/snosov1/toc-org/issues/16","repository_url":"https://api.github.com/repos/snosov1/toc-org","labels_url":"https://api.github.com/repos/snosov1/toc-org/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/snosov1/toc-org/issues/16/comments","events_url":"https://api.github.com/repos/snosov1/toc-org/issues/16/events","html_url":"https://github.com/snosov1/toc-org/issues/16","id":149448383,"number":16,"title":"[Github] Handle duplicate headings correctly","user":{"login":"dvcrn","id":688326,"avatar_url":"https://avatars.githubusercontent.com/u/688326?v=3","gravatar_id":"","url":"https://api.github.com/users/dvcrn","html_url":"https://github.com/dvcrn","followers_url":"https://api.github.com/users/dvcrn/followers","following_url":"https://api.github.com/users/dvcrn/following{/other_user}","gists_url":"https://api.github.com/users/dvcrn/gists{/gist_id}","starred_url":"https://api.github.com/users/dvcrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvcrn/subscriptions","organizations_url":"https://api.github.com/users/dvcrn/orgs","repos_url":"https://api.github.com/users/dvcrn/repos","events_url":"https://api.github.com/users/dvcrn/events{/privacy}","received_events_url":"https://api.github.com/users/dvcrn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-19T12:35:47Z","updated_at":"2016-04-19T12:35:47Z","closed_at":null,"body":"As explained in https://github.com/snosov1/toc-org/issues/1#issuecomment-211863739\r\n\r\nIf a heading is appearing more than once on github pages, github is appending a number to the anchor (`messagelist-1). \r\n\r\nHere's a generated example with the current functionality:\r\n\r\n```\r\n   - [[#general][General]]\r\n     - [[#authentication][Authentication]]\r\n   - [[#requests][Requests]]\r\n     - [[#messagelist][message:list]]\r\n   - [[#events][Events]]\r\n     - [[#messagelist][message:list]]\r\n```\r\n\r\nHere's how it should look like:\r\n\r\n```\r\n   - [[#general][General]]\r\n     - [[#authentication][Authentication]]\r\n   - [[#requests][Requests]]\r\n     - [[#messagelist][message:list]]\r\n   - [[#events][Events]]\r\n     - [[#messagelist-1][message:list]]\r\n```\r\n"}}