Markdown extension to include FontAwesome icons with ease.
Project description
Easily place FontAwesome icons in your MarkDown files
This is a Markdown extension to include FontAwesome icons in your Markdown text, without pasting bulky HTML.
Use emoticon-like strings like :fa-hot-mug: to place the corresponding FontAwesome markup in your text flow.
How to use
Include FontAwesome v6.6 CSS/assets to your DOM, then add fontawesome_in_markdown to your Markdown:
from markdown import Markdown
markdown = Markdown(extensions=['fontawesome_in_markdown']
Now you can try some trickery:
markdown.convert('I ♥ :fa-hot-mug:')
will output
<p>i ♥ <i class="fa-solid fa-hot-mug"></i></p>
and
markdown.convert('i ♥ :far fa-star: fa-x3')
will output
<p>i ♥ <i class="fa-regular fa-fontawe fa-x3"></i></p>
Known issues
The light prefix, althought supported in code, won't work because FontAwesome doesn't currently expose light icons in their metadata file.
Credits
This extension is a fork of fontawesome-markdown by bmcorser.
For some reasons, the original repository is abandoned, so I decided to publish this updated version, after waiting for a PR to be accepted.
Should the original author come back in the future, to maintain the original package, I will probably merge it back. In the meantime this should be a valid dropdown replacement.
Contributions
I'll try my best to keep this repo up to date, reviewing and accepting contributions, but I'm not an expert Pythonista myself. Feel free to send in PRs as long as they describe the scope clearly, to ease the review process.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fontawesome_in_markdown-0.1.1.tar.gz.
File metadata
- Download URL: fontawesome_in_markdown-0.1.1.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea54ff42c676cae88b5277df8a74842be84556207f555cd40cacfa447cc86c61
|
|
| MD5 |
55b90d9d1b309e44c75ab02b8b3497a8
|
|
| BLAKE2b-256 |
be5a948aabb0e8dbbc35cb35ea517b0a9a5570f851647b8ceb2c4167a9902943
|
File details
Details for the file fontawesome_in_markdown-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fontawesome_in_markdown-0.1.1-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d4db00fe9c8dfd0f9d76fcec4d81b5d25d3c6cc6811f5c3f2f4ed4c0ac2378b
|
|
| MD5 |
1adf699d0a7eb8c6fdf5723e76a377c9
|
|
| BLAKE2b-256 |
7381727c35daf31e56ca9220add9e51fe1f5fdf7e0b36ee92d9235d9363b647a
|