Skip to main content

Font Awesome support for Markdown

Project description

A Markdown extension that looks for things like :fa-coffee: and replaces them with the Font Awesome 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 ♥ :fa-coffee:')
<p>i ♥ <i class="fa fa-coffee"></i></p>

Don’t forget to make the Font Awesome 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.2.tar.gz (3.9 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for fontawesome-markdown-0.2.tar.gz
Algorithm Hash digest
SHA256 9e22caece6a7019cf2b2b7a6aa9df0fd366ba0700f586f361cc1724ad2e9c0af
MD5 d6799747633a4619495b42960606ae91
BLAKE2b-256 9c12302b261bf689a516e8fd9ba010adc6dd5d50cfd3afc3b0d3f93c073bdf64

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