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 🙏

© 2026 – Pkg Stats / Ryan Hefner

remark-notes-plugin

v2.0.0

Published

A remark plugin that transforms markdown quotes into styled note elements

Readme

remark-notes-plugin 📝

A powerful TypeScript remark plugin that transforms markdown blockquotes into beautifully styled note elements. Add professional-looking notes, tips, quotes, and more to your markdown documentation with minimal effort!

Test Status npm License Website

✨ Features

  • 🎨 5 Beautiful Note Types - Note, Tip, Important, Quote, and Bonus
  • 🎯 Semantic HTML Output - Clean and accessible HTML structure
  • 💅 Customizable Styling - Easy to override CSS classes
  • 🔧 Easy Integration - Works with any remark-based markdown processor

📦 Installation

npm install remark-notes-plugin

🚀 Usage

import { unified } from 'unified'
import remarkParse from 'remark-parse'
import remarkStringify from 'remark-stringify'
import remarkNotes from 'remark-notes-plugin'

const markdown = `
> [!note]
> This is a note about something important.

> [!tip]
> Here's a helpful tip for you.

> [!important]
> This is a very important message!

> [!quote]
> Here's a memorable quote.

> [!bonus]
> Here's some extra content for you!
`

const file = await unified()
  .use(remarkParse)
  .use(remarkNotes)
  .use(remarkStringify)
  .process(markdown)

console.log(String(file))

📝 Note Types

The plugin supports five distinct types of notes, each with its own unique style:

  1. Note - For general information and remarks

    > [!note]
    > Your note content here
  2. Tip - For helpful tips and tricks

    > [!tip]
    > Your tip content here
  3. Important - For critical information and warnings

    > [!important]
    > Your important message here
  4. Quote - For quotations and references

    > [!quote]
    > Your quote content here
  5. Bonus - For additional, supplementary content

    > [!bonus]
    > Your bonus content here

🎨 Styling

Default styles are loaded automatically when you use the plugin. You can also modify the styles since the plugin uses a modular class structure that makes it easy to customize the appearance:

Base Classes

  • .remark-note - Base container for all note types
  • .remark-note-header - Note header container
  • .remark-note-icon - Icon styling
  • .remark-note-title - Note title styling
  • .remark-note-content - Note content container

Type-Specific Classes

  • .remark-note.note - Note type styling
  • .remark-note.tip - Tip type styling
  • .remark-note.important - Important type styling
  • .remark-note.quote - Quote type styling
  • .remark-note.bonus - Bonus type styling

Customization Example

/* Example: Customize the Note type */
.remark-note.note {
  background-color: #your-color;
  border-color: #your-border-color;
}

.remark-note.note .remark-note-title {
  color: #your-text-color;
}

🛠️ Development

This project is written in TypeScript. To contribute or modify:

# Install dependencies
yarn

# Build the project
yarn build

# Run tests
yarn test

# Watch mode for development
yarn watch

🤝 Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest new features
  • Submit pull requests

Please ensure your pull request passes all tests and includes appropriate documentation.


⭐️ If you find this plugin useful, please consider giving it a star on GitHub! ⭐️