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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file fontawesome-markdown-0.tar.gz
.
File metadata
- Download URL: fontawesome-markdown-0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d71ab84c834b32bcc6b842684285958e2d408c06588d2a8c9c398fe8f8191bf2 |
|
MD5 | 064085f66bf1e11dc9ad0c79a3737ea5 |
|
BLAKE2b-256 | 304d1ee60990066d8b2ae9f90b9c13d5192534f69f949a83e8814a6607c3e94b |