While Gist's markdown flavor is a superset of basic Markdown, it's not exactly the same as Markdown Extra.
To publish documents written in Markdown Extra as Gist so that it looks good:
-
Convert the document to basic Markdown with Pandoc:
$ pandoc -f markdown -t markdown_strict ```
- Run the resulting document through this script to emulate Markdown Extra features in a Gist compatible way.
Note:
- the script relies on Pandoc's formatting conventions for dumbing down extra constructs to basic, so it can be expected to work only with Pandoc produced basic Markdown
- the script relies on some particularities of Gist's way to generate HTML from Markdown, so the result can be expected to look good only on Gist
- needless to say it's a hack, not tested thoroughly