{"action":"created","issue":{"url":"https://api.github.com/repos/ekalinin/github-markdown-toc.go/issues/6","repository_url":"https://api.github.com/repos/ekalinin/github-markdown-toc.go","labels_url":"https://api.github.com/repos/ekalinin/github-markdown-toc.go/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ekalinin/github-markdown-toc.go/issues/6/comments","events_url":"https://api.github.com/repos/ekalinin/github-markdown-toc.go/issues/6/events","html_url":"https://github.com/ekalinin/github-markdown-toc.go/issues/6","id":153465843,"number":6,"title":"Can this tool generate a TOC if the input file does not contain a 1st-level head?","user":{"login":"cmaynard","id":13698964,"avatar_url":"https://avatars.githubusercontent.com/u/13698964?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaynard","html_url":"https://github.com/cmaynard","followers_url":"https://api.github.com/users/cmaynard/followers","following_url":"https://api.github.com/users/cmaynard/following{/other_user}","gists_url":"https://api.github.com/users/cmaynard/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaynard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaynard/subscriptions","organizations_url":"https://api.github.com/users/cmaynard/orgs","repos_url":"https://api.github.com/users/cmaynard/repos","events_url":"https://api.github.com/users/cmaynard/events{/privacy}","received_events_url":"https://api.github.com/users/cmaynard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-06T14:42:44Z","updated_at":"2016-05-10T13:52:28Z","closed_at":null,"body":"I don't specify a 1st-level head in markdown files because Jekyll creates one for me when I use the `title:` directive. My typical markdown file looks something like this:\r\n```\r\n---\r\nlayout: post\r\ntitle: My Title\r\n---\r\n\r\n### Saturday, May 28\r\n\r\n#### KIN ➜ BOS\r\nAmtrak Northeast Regional #66 departs Kingston Station at 6:17 am and arrives in South Station, Boston at 7:58 am.\r\n\r\nMBTA transit to Logan Airport.\r\n\r\n#### BOS ➜ ATL ➜ SFO\r\nDelta Airlines #1801 departs at 11:00 am and arrives at 1:43 pm.  \r\nDelta Airlines #1923 departs at 2:35 pm and arrives at 4:45 pm.\r\n```\r\nHere is the output from gh-md-toc:\r\n```\r\nTable of Contents\r\n=================\r\n\r\n\r\nCreated by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)\r\n```\r\nI expected to see a TOC. Am I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/ekalinin/github-markdown-toc.go/issues/comments/218163627","html_url":"https://github.com/ekalinin/github-markdown-toc.go/issues/6#issuecomment-218163627","issue_url":"https://api.github.com/repos/ekalinin/github-markdown-toc.go/issues/6","id":218163627,"user":{"login":"ekalinin","id":234891,"avatar_url":"https://avatars.githubusercontent.com/u/234891?v=3","gravatar_id":"","url":"https://api.github.com/users/ekalinin","html_url":"https://github.com/ekalinin","followers_url":"https://api.github.com/users/ekalinin/followers","following_url":"https://api.github.com/users/ekalinin/following{/other_user}","gists_url":"https://api.github.com/users/ekalinin/gists{/gist_id}","starred_url":"https://api.github.com/users/ekalinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekalinin/subscriptions","organizations_url":"https://api.github.com/users/ekalinin/orgs","repos_url":"https://api.github.com/users/ekalinin/repos","events_url":"https://api.github.com/users/ekalinin/events{/privacy}","received_events_url":"https://api.github.com/users/ekalinin/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T13:52:28Z","updated_at":"2016-05-10T13:52:28Z","body":"As I see, there's `0.5.0`:\r\n  * https://github.com/Homebrew/homebrew-core/blob/master/Formula/github-markdown-toc.rb"}}