Skip to content

bmcorser/fontawesome-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Font Awesome and Markdown, together!

For when words aren't enough.

https://travis-ci.org/bmcorser/fontawesome-markdown.svg?branch=0.2.4

A Markdown extension that looks for things like :fa-coffee: and replaces them with the Font Awesome icon markup.

Add 'fontawesome_markdown' to your Markdown call and watch the magic unfold:

>>> from markdown import Markdown

>>> markdown = Markdown(extensions=['fontawesome_markdown']
>>> markdown.convert('i ♥ :fa-coffee:')
<p>i<i class="fa fa-coffee"></i></p>

>>> markdown.convert('i ♥ :far fa-fontawesome: fa-x3')
<p>i<i class="far fa-coffee fa-x3"></i></p>

Don't forget to make the Font Awesome v5.2 assets available to your DOM, and you're done!

Issue

  • light prefix is not supported now.(I can not find metadata)

About

Markdown extension to use Font Awesome icons in a GitHub style

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages