Skip to main content

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.

Metadata

Release files for gfm 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gfm 0.0.3
File Size Uploaded Provenance
gfm-0.0.3.tar.gz 3.3 kB Without provenance Details

Release files / gfm-0.0.3.tar.gz

Download URL gfm-0.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5b2b26937ecd0994fb4c383f187ee0f1a398355955d56188742adb8c424126c8
BLAKE2b-256 checksum
How to use checksums
35a319ba4a886b1586b508b9e035f6a7e6110b5bdba1fbc6326489dfc42e65d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for gfm 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page