markdown-it-fontawesome
Markdown-it plugin that adds Font Awesome icons support.
Turn this:
Hello World! :fa-flag:
Into this:
Hello World!
Install
$ npm install markdown-it-fontawesome --save
Usage
Enable plugin
var md = ;var fa = ; ;
Font Awesome version 4 example
Hello World! :fa-flag: - [:fa-google: Google](https://www.google.com/)- [:fa-github: GitHub](https://github.com/)
Gets converted to:
Hello World! Google GitHub
Font Awesome 5+ example
Hello World! :fal-flag: - [:fab-google: Google](https://www.google.com/)- [:fab-github: GitHub](https://github.com/)
gets converted to:
Hello World! Google GitHub
Credits
Original: https://github.com/nunof07
Font awesome 5 support and tests: https://github.com/rjjakes
License
MIT