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
.
With NPM:
$ npm install --save showdown-icon
With Bower:
$ bower install showdown-icon
var converter = new Showdown.converter({ extensions: ['icon'] });
converter.makeHtml('@glyphicon-envelope');
converter.makeHtml('@fa-home');