Skip to main content

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.

Project details

Download files

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

Files for gfm, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size gfm-0.0.3.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page