markdown-it-icons
Plugin for markdown-it, supports emoji icons and font-awesome icons.
Installation
yarn add markdown-it-icons
Usage
for node.js
const mdi = mdimdimdi // <p>I <i class="e1a-heart"></i> you</p>mdi // <p>A <i class="fa fa-car"></i> runs</p>
for browser
You also need to import the 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