Skip to main content

Convert GitHub-Flavored Markdown to HTML

Project description

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

Usage

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>'

Installation

pip install gfm

License

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.

Source Distribution

gfm-0.0.3.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file gfm-0.0.3.tar.gz.

File metadata

  • Download URL: gfm-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gfm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5b2b26937ecd0994fb4c383f187ee0f1a398355955d56188742adb8c424126c8
MD5 a79251bcfc32a12047f6a7b278457507
BLAKE2b-256 35a319ba4a886b1586b508b9e035f6a7e6110b5bdba1fbc6326489dfc42e65d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page