There's an open-source project called grip [1] that can render markdown to HTML that looks almost identical to the GitHub rendering. It can do either live preview or export to HTML. I use it for previewing GitHub READMEs while I edit them, and it does an excellent job for that purpose.