Skip to main content

FontAwesome support for Markdown

Project description

A Markdown extension that looks for things like :icon-coffee: and replaces them with the FontAwesome icon markup.

Add a FontAwesomeExtension instance to your Markdown call and watch the magic unfold:

>>> from markdown import Markdown
>>> from fontawesome_markdown import FontAwesomeExtension

>>> markdown = Markdown(extensions=[FontAwesomeExtension()]
>>> markdown.convert('i ♥ :icon-coffee:')
<p>i ♥ <i class="icon icon-coffee"></i></p>

Don’t forget to make the FontAwesome assets available to your DOM!

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

fontawesome-markdown-0.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file fontawesome-markdown-0.1.tar.gz.

File metadata

File hashes

Hashes for fontawesome-markdown-0.1.tar.gz
Algorithm Hash digest
SHA256 84e6f4b1edde10d38bd332801fefec988244f5c9b26f260f0a54cd9cb1208820
MD5 8412df95e5584eb2d42352eb41291814
BLAKE2b-256 df6c27e760b6aec69702f10e74a1417c05bbf51267972b78d2b87cd64812f2f6

See more details on using hashes here.

Supported by

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