skip to navigation
skip to content

gfm 0.0.3

Convert GitHub-Flavored Markdown to HTML

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.

File Type Py Version Uploaded on Size
gfm-0.0.3.tar.gz (md5) Source 2014-06-18 3KB