Skip to content

Glyphicon and font-awesome support in Markdown for Showdown.js

License

Notifications You must be signed in to change notification settings

dbtek/showdown-icon

Repository files navigation

Showdown Icon Extension Build Status

Glyphicon and font-awesome support in Markdown for Showdown.js

Generates <span class="glyphicon glyphicon-home"></span> with @glyphicon-home, and <i class="fa fa-home"></i> with @fa-home.

Install

With NPM:

 $ npm install --save showdown-icon

With Bower:

 $ bower install showdown-icon

Usage

var converter = new Showdown.converter({ extensions: ['icon'] });
converter.makeHtml('@glyphicon-envelope');
converter.makeHtml('@fa-home');