Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Convert GitHub-Flavored Markdown to HTML

Project Description

GFM is a small module to convert GitHub Flavored Markdown to HTML.


GFM offers two methods, gfm and markdown.

gfm simply preprocesses the parts of Markdown that GitHub Flavored Markdown is interested in, without converting the Markdown to HTML.

markdown does this as well as passing the result through the markdown module to generate HTML.

>>> import gfm
>>> string = "Roses are red\nViolets are blue"
>>> gfm.gfm(string)
'Roses are red  \nViolets are blue'
>>> gfm.markdown(string)
'<p>Roses are red<br />\nViolets are blue</p>'


pip install gfm


MIT, plain and simple.

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.3 kB) Copy SHA256 Hash SHA256
Source None Jun 18, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting