markdown-it-icons

Plugin for markdown-it, supports emoji icons and font-awesome icons.

Showing:

Popularity

Downloads/wk

49

GitHub Stars

5

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

3

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

markdown-it-icons

Plugin for markdown-it, supports emoji icons and font-awesome icons.

Installation

yarn add markdown-it-icons

Usage

for node.js

import markdownIt from 'markdown-it'
import markdownItIcons from 'markdown-it-icons'
const mdi = markdownIt()
mdi.use(markdownItIcons, 'emoji')
mdi.use(markdownItIcons, 'font-awesome')
mdi.render('I :heart: you') // <p>I <i class="e1a-heart"></i> you</p>
mdi.render('A :fa-car: runs') // <p>A <i class="fa fa-car"></i> runs</p>

for browser

You also need to import the css:

import 'markdown-it-icons/dist/index.css'

Or you can add the css to the web page directly.

Development

Build

yarn build:watch

Test

yarn test

Distribution

yarn release && npm publish

Todo

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial