2.0.0 • Published 7 years ago

showdown-icon v2.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

Showdown Icon Extension

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

bower install showdown-icon

Usage

<script src="showdown.js" />
<script src="showdown-icon/showdown-icon.js" />
var converter = new Showdown.converter({ extensions: ['icon'] });
alert(converter.makeHtml('@glyphicon-envelope'));
alert(converter.makeHtml('@fa-home'));