npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@kazumatu981/markdown-it-fontawesome

v2.1.0

Published

markdown-it plugin to be able to use fontawesome

Readme

markdown-it-fontawesome

This Project is under contstructing. Please not post issue for this project.

Markdown It plugin, by which you'll be able to use Fontawsome icon on your Markdown. So you can use Fontawesome icon on your documents !! Please enjoy.

Feature

Simple icon

| description | Markdown | HTML | | ----------- | -------------------- | ------------------------------------------------------------ | | Simple icon | :fa fa-user: | <p><i class="fa fa-user"></i></p> | | Styled icon | :fa fa-user:{.red} | <p><span class="red"><i class="fa fa-user"></i></span></p> |

remark

Before v2.0.*, you could specify styles using the format [:fa fa-user:]{.red}, but considering conflicts with other packages, it has been changed to :fa fa-user:{.red}.

Stacking icons

If you wrote in markdown like bellow,

[[:fa-solid fa-camera fa-stack-1x:]{.blue} [:fa-solid fa-ban fa-stack-2x:]{.red}]

goes to in html like this.

<p>
    <span class="fa-stack">
        <span class="blue">
            <i class="fa-solid fa-camera fa-stack-1x"></i>
        </span>
        <span class="red">
            <i class="fa-solid fa-ban fa-stack-2x"></i>
        </span>
    </span>
</p>

Icons in a list

If you wrote in markdown like bellow,

- :fa-solid fa-cube: first item
- :fa-solid fa-cube: second item
- :fa-solid fa-cube: third item

goes to in html like this.

<ul class="fa-ul">
    <li>
        <span class="fa-li"> <i class="fa-solid fa-cube"></i> first item </span>
    </li>
    <li>
        <span class="fa-li"> <i class="fa-solid fa-cube"></i> second item </span>
    </li>
    <li>
        <span class="fa-li"> <i class="fa-solid fa-cube"></i> third item </span>
    </li>
</ul>

How To Use

Install

npm install @kazumatu981/markdown-it-fontawesome

import

const MarkdownItFontawesome = require('@kazumatu981/markdown-it-fontawesome');

or

import MarkdownItFontawesome from '@kazumatu981/markdown-it-fontawesome';

use

md.use(MarkdownItFontawesome.plugin, {
    // if you need, write options here.
});

options

When using multiple plugins with markdown-it, tag conflicts may occur, causing this plugin to not work correctly. For example, markdown-it-mdc and this library have tag conflicts and do not work properly together. Therefore, this library provides options to change the tag : used for Fontawesome icons and the tag [] used for stacking icons.

Specify the following properties in the options parameter, which is the second argument of the use() method in markdown-it.

| ---------------------------------------- | ------------------------------------- | | simpleFaTagStart, simpleFaTagEnd | Start and end tags for a simple icon | | stackingFaTagStart, stackingFaTagEnd | Start and end tags for stacking icons |

Example on marp

If you want to use on Marp, please check it.