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

joplin-plugin-markdown-alerts

v1.6.4

Published

A Joplin plugin that adds the following functionality to the Markdown editor:

Downloads

1,487

Readme

Markdown Alerts and Formatting Commands

A Joplin plugin that adds the following functionality to the Markdown editor:

  • renders GitHub-style alerts in the Markdown viewer and Markdown editor
  • adds Markdown editor commands for alerts, blockquotes, and inline formatting (strikethrough/highlight/insert/superscript/subscript)
  • provides auto-complete dropdown for github alert syntax

[!NOTE] This plugin was created entirely with AI tools.

[!CAUTION] The Rich Text Editor is not supported. Alerts may appear there, but editing in the Rich Text Editor will remove GitHub alert syntax.

1. GitHub Alert Rendering

The plugin supports GitHub-style alert syntax:

  • Markdown viewer: alerts render as styled callouts using markdown-it-github-alerts
  • Markdown editor: alerts are decorated as styled block quotes, with a title line showing the alert type (or custom title) and svg icon based on alert type (similar to the markdown-it-github-alerts styling in the viewer)

Supported alert types:

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.

> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

> [!ABSTRACT]
> A summary or overview of the content that follows.

> [!INFO]
> Additional context or background information on a topic.

> [!TODO]
> A task or action item that still needs to be completed.

> [!SUCCESS]
> Confirms that an action or process completed successfully.

> [!QUESTION]
> A question or point requiring clarification or further thought.

> [!FAILURE]
> Indicates something that did not work or a known limitation.

> [!DANGER]
> Critical warning about something that could cause serious harm.

> [!BUG]
> Documents a known issue, defect, or unexpected behavior.

> [!EXAMPLE]
> Illustrates a concept with a concrete example or sample.

> [!QUOTE]
> A notable quotation or reference from an external source.

Examples:

alert examples in markdown editor


alert examples in markdown viewer

2. Codemirror auto-complete for markdown alerts

Typing >! or > [! at the beginning of an empty line will trigger an auto-completion dropdown to finish the alert syntax from the supported alert types.

examples showing auto-completion of alerts

3. Markdown Editor Commands For Block Structures

The plugin adds toolbar buttons and Edit menu commands for:

  • Insert or Toggle alert
  • Insert or Toggle blockquote
  • Clear Markdown formatting in selection

Insert or Toggle alert

Default shortcut: Ctrl + Shift + A

Behavior:

  • On an empty line, insert > [!NOTE] highlight the "NOTE" text so the user can enter the desired alert type.
  • If the cursor is inside an existing alert, cycle the alert type
  • If the cursor is inside a regular blockquote, convert it into an alert
  • With no selection, convert the current paragraph or line into an alert
  • With a selection, convert the selected paragraphs or lines into an alert

Insert or Toggle blockquote

Default shortcut: Ctrl + Shift + .

Behavior:

  • On an empty line, insert > and place the cursor after the marker
  • With no selection, convert the current paragraph or line into a blockquote
  • With a selection, convert the selected paragraphs or lines into blockquotes

Clear Markdown formatting in selection

Default shortcut: none

Behavior:

  • Works on the current non-empty selection ranges
  • Removes supported markdown and inline HTML formatting syntax
  • Removes GitHub alert marker lines like > [!NOTE] while preserving any custom alert title text
  • Strips headings, blockquotes, ordered/unordered/nested lists, and task list markers back to plain text
  • Converts external markdown links and image embeds to their raw URLs
  • Preserves Joplin resource links and embeds that target :/<32 hex>

block formatting commands example

4. Inline Formatting Commands

Joplin supports various inline Markdown extensions, but the Markdown editor does not provide built-in commands for all of them. This plugin adds commands, toolbar buttons, and Edit menu entries for:

  • Highlight: ==text==
  • Strikethrough: ~~text~~
  • Underline: ++text++
  • Superscript: <sup>text</sup> by default, optionally ^text^
  • Subscript: <sub>text</sub> by default, optionally ~text~

Default shortcuts:

  • Highlight: CmdOrCtrl + Shift + Y
  • Strikethrough: CmdOrCtrl + Shift + ~
  • Underline: CmdOrCtrl + Shift + U
  • Superscript: no default shortcut
  • Subscript: no default shortcut

Command behavior:

  • No active selection: insert the delimiter pair and place the cursor between them
    • If cursor is inside (or adjacent to) existing markdown formatted text:
      • cursor immediately before opening formatting tokens: move cursor inside
      • cursor immediately before ending formatting tokens: move cursor after
      • cursor otherwise inside formatting: remove formatting and select text
  • Selected text already fully wrapped in the target format: remove the outer formatting
  • Selection contains one or more inner spans already using the target format: remove only that target formatting
  • Selection contains no target formatting: wrap the selection

For full-line selections, the inline formatting commands are line-aware instead of blindly wrapping the whole block:

  • blank lines are preserved
  • list markers are preserved
  • blockquote markers are preserved
  • heading markers are preserved
  • task list markers are preserved
  • fenced code blocks, tables, and horizontal rules are left alone
  • leading and trailing spaces stay outside newly inserted delimiters

Examples:

> - abc test

Highlight becomes:

> - ==abc test==
## Heading

Highlight becomes:

## ==Heading==

inline formatting commands example

Settings

Auto-completion

Enable/Disable alert type autocomplete in the markdown editor (default enabled).

Syntax

Separate syntax settings for the superscript and subscript commands. Both default to inline HTML because Joplin (v3.6 and newer) renders that syntax in both the editor and the viewer.

Toolbar buttons

The plugin includes settings to enable or disable each editor toolbar button independently.

Available toolbar visibility settings:

  • Alert
  • Blockquote
  • Clear Formatting
  • Highlight
  • Strikethrough
  • Underline
  • Superscript
  • Subscript

All toolbar buttons are enabled by default.

These settings only affect the editor toolbar buttons. The commands themselves, menu items, and shortcuts still remain available.

Changing a toolbar visibility setting currently requires restarting the plugin to take effect. Changing the superscript or subscript syntax setting applies to commands immediately and does not require a restart.