Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    markdown-it-fontawesomepublic

    markdown-it-fontawesome

    Markdown-it plugin that adds Font Awesome icons support.

    Turn this:

    Hello World! :fa-flag:

    Into this:

    <p>Hello World! <i class="fa fa-flag"></i></p>

    Install

    $ npm install markdown-it-fontawesome --save

    Usage

    Enable plugin

    var md = require('markdown-it');
    var fa = require('markdown-it-fontawesome');
     
    md().use(fa);

    Example

    Hello World! :fa-flag:
     
    - [:fa-google: Google](https://www.google.com/)
    - [:fa-github: GitHub](https://github.com/)

    Gets converted to:

    <p>Hello World! <i class="fa fa-flag"></i></p>
    <ul>
    <li><a href="https://www.google.com/"><i class="fa fa-google"></i> Google</a></li>
    <li><a href="https://github.com/"><i class="fa fa-github"></i> GitHub</a></li>
    </ul>

    install

    npm i markdown-it-fontawesome

    Downloadslast 7 days

    87

    version

    0.2.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar