support for github formatting ripped from chelsea/grape_doc