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 hashes)

Uploaded Source

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