73

I am not able to get Markdown work in a gist. My post is available here.

Notice that the same Markdown works when I add a comment.

What did I miss?

Simon
  • 31,675
  • 9
  • 80
  • 92
Tarun
  • 3,456
  • 10
  • 48
  • 82

1 Answers1

131

Github uses file extension to recognize file type. In order to use Markdown in your gist it should have appropriate .markdown (or .md) extension. See this.

KL-7
  • 46,000
  • 9
  • 87
  • 74
  • Don't happen to know how they got tables working here: https://gist.github.com/1207002 do you? – Dean Rather Jun 12 '12 at 04:56
  • I see now that particular gist's 'type' is set to 'textile', not 'markdown' – Dean Rather Jun 12 '12 at 05:01
  • @DeanRather You can do tables with Markdown. See [GitHub Flavored Markdown - Tables](https://help.github.com/articles/github-flavored-markdown#tables). – user692942 Aug 08 '14 at 09:16
  • 1
    When I create Gists, I also notice markdown never works, so typically put the bulk of the content as markdown in the comments, which does work. It took me some time to figure out you have to edit the "title" of the gist to make it a file name ending with .md. – John Little Sep 28 '18 at 09:42