Skip to main content
the basics

Introduction

remark-notes-plugin turns markdown blockquotes into styled note components.

> [!tip]
> Share best practices and pro tips with your readers.
<blockquote class="remark-note remark-note-tip">
<div class="remark-note-header">
<span class="remark-note-icon"><!-- SVG icon --></span>
<span class="remark-note-title">tip</span>
</div>
<div class="remark-note-content">
<p>Share best practices and pro tips with your readers.</p>
</div>
</blockquote>

Install​

npm install remark-notes-plugin
# or: yarn add remark-notes-plugin
# or: pnpm add remark-notes-plugin

Requires remark v13+ and Node.js v14+.

Usage​

Wire the plugin in wherever your project already processes markdown:

// next.config.mjs
import createMDX from '@next/mdx';
import remarkNotes from 'remark-notes-plugin';

const withMDX = createMDX({
options: { remarkPlugins: [remarkNotes] },
});

export default withMDX({
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
});

Styles inject automatically — no CSS import needed. To control that, see Customization.

Every framework here has more detail — alternate routers, extra config options, Hugo's build wiring — on Framework Integration.

The 5 note types​

> [!note]
> Perfect for general information and helpful context.

> [!tip]
> Share best practices and pro tips with your readers.

> [!important]
> Highlight critical information that demands attention.

> [!quote]
> Showcase quotes and testimonials beautifully.

> [!bonus]
> Add extra value with advanced techniques.
  • note — general information and context
  • tip — best practices and suggestions
  • important — critical information that demands attention
  • quote — quotations and testimonials
  • bonus — extra, optional value