Need AI Training/Help?CloudYeti.io/meet
MarkdownMe
Practical Markdown Guide

GitHub Markdown Alerts and Callouts

GitHub Markdown alerts use blockquote syntax followed by an alert label. Put the label on its own line as [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], or [!CAUTION]. Add the alert text on the following lines. For example, > [!WARNING] followed by > Back up the database before running this command. GitHub renders the supported label as a styled callout in places that support GitHub Flavored Markdown. Keep the message short, explain the action or risk, and test the result in the target repository or documentation page.

Supported alert types

GitHub supports five alert labels for repository documentation. NOTE adds useful context without implying immediate action. TIP offers a practical suggestion that can save time. IMPORTANT highlights information required for a successful task. WARNING points to a possible problem or unwanted result. CAUTION signals a serious risk, such as data loss or an unsafe production change. Each alert begins with a blockquote marker, a space, and the label. The label must use the square brackets and exclamation mark shown in the syntax. Alert text follows on one or more blockquote lines. You can include ordinary Markdown inside the body, including links, inline code, and lists where the renderer permits it. Use one alert type per block so readers can scan the page quickly.

Write alerts that help readers act

A useful callout answers three questions: what is happening, who needs to care, and what action should follow. Place the alert beside the related instruction rather than collecting every warning at the top of a page. Use NOTE for background information, not hidden requirements. Use TIP for an optional shortcut. Reserve IMPORTANT for a required setting or dependency. Use WARNING when a command can change files, permissions, costs, or service behavior. Use CAUTION for irreversible operations or possible data loss. Keep the first sentence direct. State the consequence before adding an explanation. Avoid using alerts for every paragraph because repeated visual emphasis reduces their value. Review alerts when commands, APIs, or deployment procedures change.

Common syntax and rendering limits

The basic pattern is a blockquote with the alert label, followed by blockquoted content. Every line in a multi-line alert should normally retain the > marker so the renderer treats the content as one block. Do not replace the label with a heading, HTML comment, or custom color name. GitHub's supported alert syntax is a GitHub-specific Markdown extension, so another Markdown processor may show the text as an ordinary blockquote. Preview the file on GitHub before publishing instructions. Alerts also depend on the page surface and renderer version. If a page must work in several systems, provide the important instruction in normal prose as well, rather than relying only on color or an icon.

How do you do it step by step?

  1. 1Open the Markdown file in the repository and identify the instruction that needs emphasis.
  2. 2Add a blockquote marker, a space, and one supported label such as [!NOTE] or [!WARNING].
  3. 3Write the alert message on the next blockquoted line and state the required action clearly.
  4. 4Preview the page on GitHub, then check that the alert appears beside the correct instruction.
  5. 5Confirm that the same information remains understandable if another renderer shows a plain blockquote.

Working example

This example warns contributors before they run a command that changes generated files.

Input
> [!WARNING]
> Run this command only after committing your current changes.
>
> The generator replaces files in the `docs/` directory.
Result
GitHub renders a warning callout containing the instruction and the explanation. The inline code around `docs/` remains readable inside the alert.

Keep the warning close to the command it describes. Do not place critical recovery instructions only inside a colored callout.

Frequently asked questions

Which alert labels does GitHub support?
GitHub documents NOTE, TIP, IMPORTANT, WARNING, and CAUTION. Use the labels exactly, including the exclamation mark and square brackets.
Can I change an alert's color or icon?
GitHub chooses the presentation for supported alert types. Markdown does not provide a portable way to assign custom alert colors or icons.
Do GitHub alerts work in every Markdown editor?
No. They use GitHub Flavored Markdown behavior. An editor or site with another renderer may display the content as a normal blockquote.
Can an alert contain multiple paragraphs?
Yes. Keep each paragraph inside the blockquote by placing the > marker on its lines. Test complex content in the target GitHub page.

Official references