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.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for fontawesome-markdown-0.2.1.tar.gz
Algorithm Hash digest
SHA256 79aef18899d8df3b10d04c31c7980c0f2c6286d79baa29170042773f839b597e
MD5 f8305403853c06201f86612aac191a46
BLAKE2b-256 d437a37017bdd7ef2225d8645f03d92b7ff1327cae04c3c8557cb78be95941de

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