Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 578 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 578 Bytes

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]'));