Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown GitHub Alerts & Obsidian CalloutsNew to Visual Studio Code? Get it now.
Markdown GitHub Alerts & Obsidian Callouts

Markdown GitHub Alerts & Obsidian Callouts

saeris

|
4,322 installs
| (2) | Free
Adds GitHub Alert and Obsidian Callout syntax support to VSCode's markdown preview
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown GitHub Alerts & Obsidian Callouts

Adds GitHub Alert and Obsidian Callout syntax support to VSCode's markdown preview.

Overview

The github-alerts plugin converts GitHub-style alert blockquotes (> [!NOTE], > [!WARNING], etc.) into styled <div> containers with an icon and title. Foldable alerts are rendered as <details> elements.

<div class="markdown-alert" data-alert="note">
  <p class="markdown-alert-title">Note</p>
  <p>...</p>
</div>

Syntax

Write a blockquote with a [!TYPE] marker on the first line:

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

> [!TIP]
> Helpful advice for getting things done more effectively.

> [!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.

Custom titles

Override the default title by adding text after the type marker:

> [!NOTE] Custom Title
> This alert uses a custom title instead of the default.

Foldable alerts

Use + to make an alert open by default, or - to make it collapsed by default:

> [!TIP]+
> This tip is open by default.

> [!WARNING]-
> This warning is collapsed by default.

Styling

This extension ships default styles for the rendered output in the preview. To customize them, point VSCode's markdown.styles setting at your own CSS file:

// .vscode/settings.json
{
  "markdown.styles": ["./my-preview-styles.css"]
}

About

Part of Markdown Preview Extended Syntax — a pack of Markdown preview syntax extensions you can install all at once.

Powered by @mirrordown/mdit-github-alerts · Source on GitHub.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft