Skip to main content

Font Awesome support for Markdown

Project description

Font Awesome and Markdown, together!
###################################
For when words aren't enough.
-----------------------------

A Markdown extension that looks for things like ``:icon-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 ♥ :icon-coffee:')
<p>i ♥ <i class="icon icon-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.1.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for fontawesome-markdown-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b44f8e3745a76fdd21b1064e7d37e5d8d50400dcf8c33f658ee505e76efe365d
MD5 6decb270faf800851a19167b37cb3f72
BLAKE2b-256 7e4c487f451d4ba521d17ff4f70addbc330a38af30df164b696d131c88389ec7

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