Does anyone knows of a working Python GFM implementation?
Currently I'm using a javascript renderer. It works, but an actual Python renderer would be the right tool for the job. (FS is a Django app)
I tried combining this with this. But the results are not so good.
relevant code --> https://github.com/freedomsponsors/www.freedomsponsors.org/blob/master/djangoproject/core/models.py (see IssueComment.toHTML)
Syntax highlighting is a plus.
GitHub uses Redcarpet which is really a Ruby binding built by github for Sundown.
There's a binding for Sundown in Python called Misaka. If you want to have something closer to the renderer github uses but in python you might start there.
For code highlighting you can use Pygments with Misaka.