XIYO's Hole

Markdown Callouts Guide

What are Callouts?

While basic markdown only provides simple blockquotes (>), GitHub introduced enhanced design features that allow writers to emphasize specific content and clearly convey intent to readers through callout functionality. This feature has been adopted by other markdown rendering tools like GitLab and Obsidian and is now widely used.

Difference from Basic Markdown Blockquotes

Basic blockquote syntax:

> This is a basic markdown blockquote.
> It only provides a simple gray vertical line and indentation.

Rendered result:

This is a basic markdown blockquote. It only provides a simple gray vertical line and indentation.

In contrast, callouts provide rich visual elements like colors, icons, and titles to clearly convey the nature of the content.

Basic Usage

Callouts use the following syntax:

> [!type]
> Callout content

[!tip] Case Sensitivity Rules Callout types are case-insensitive. [!NOTE], [!note], and [!Note] all work identically.

However, it's recommended to choose one consistent rule:

  • Lowercase ([!note]): Faster typing without Shift key
  • Uppercase ([!NOTE]): More visually prominent and formal

Recommendation: Use lowercase. With markdown linters (standardization tools), you can automatically convert all callouts to uppercase later if needed, so it's more efficient to use convenient lowercase during writing and convert with tools when necessary.

Examples

> [!note]
> This is a note callout.

> [!warning]
> This is a warning callout.

> [!tip] Custom Title
> You can add a custom title.

Markdown Platform Callout/Alert Support Comparison

Callout Type GitHub GitLab Obsidian
NOTE βœ… βœ… βœ…
TIP βœ… βœ… βœ…
IMPORTANT βœ… βœ… βœ…
WARNING βœ… βœ… βœ…
CAUTION βœ… βœ… βœ…
info ❌ ❌ βœ…
todo ❌ ❌ βœ…
abstract ❌ ❌ βœ…
summary ❌ ❌ βœ…
tldr ❌ ❌ βœ…
hint ❌ ❌ βœ…
success ❌ ❌ βœ…
check ❌ ❌ βœ…
done ❌ ❌ βœ…
question ❌ ❌ βœ…
help ❌ ❌ βœ…
faq ❌ ❌ βœ…
attention ❌ ❌ βœ…
failure ❌ ❌ βœ…
fail ❌ ❌ βœ…
missing ❌ ❌ βœ…
danger ❌ ❌ βœ…
error ❌ ❌ βœ…
bug ❌ ❌ βœ…
example ❌ ❌ βœ…
quote ❌ ❌ βœ…
cite ❌ ❌ βœ…
Recommendation - Simplicity is Productivity

While Obsidian offers 25 different callout types, we strongly recommend using only the 5 common types.

Key reasons:

  1. Reduced choice fatigue: No need to choose among 25 options - just remember 5
  2. Focus on writing: Spend time on content, not callout selection
  3. Maintain consistency: Build unified style across teams and projects
  4. Ensure compatibility: Works identically across GitHub, GitLab, and other platforms
  5. Minimize cognitive load: Readers only need to understand 5 familiar types

Recommended 5 types: NOTE (information), TIP (tips), IMPORTANT (important), WARNING (warning), CAUTION (caution)

These 5 types can effectively express 99% of situations. More choices aren't always better.


Basic Information Callouts

Used to display basic information or notes that users should be aware of.

Note

GitHub GitLab Obsidian
βœ… βœ… βœ…
Note

Displays basic information or notes.

Info

GitHub GitLab Obsidian
❌ ❌ βœ…
Info

Displays informational content or guidance.

Todo

GitHub GitLab Obsidian
❌ ❌ βœ…
Todo

Displays to-do items or task lists.

Help and Suggestion Callouts

Used to provide helpful tips or emphasize important information for users.

Tip

GitHub GitLab Obsidian
βœ… βœ… βœ…
Tip

Displays useful tips or suggestions.

Hint

GitHub GitLab Obsidian
❌ ❌ βœ…
Hint

Used to provide hints or clues.

Important

GitHub GitLab Obsidian
βœ… βœ… βœ…
Important

Emphasizes important information or key content.

Question and Help Callouts

Used to address user questions or provide assistance.

Question

GitHub GitLab Obsidian
❌ ❌ βœ…
Question

Displays questions or inquiries.

Help

GitHub GitLab Obsidian
❌ ❌ βœ…
Help

Provides help information or usage instructions.

FAQ

GitHub GitLab Obsidian
❌ ❌ βœ…
Faq

Displays frequently asked questions and answers.

Warning and Caution Callouts

Used to convey warnings or cautionary information to users.

Warning

GitHub GitLab Obsidian
βœ… βœ… βœ…
Warning

Warns about matters requiring attention.

Caution

GitHub GitLab Obsidian
βœ… βœ… βœ…
Caution

Alerts about content requiring caution or risk factors.

Attention

GitHub GitLab Obsidian
❌ ❌ βœ…
Attention

Emphasizes content requiring special attention.

Success and Completion Callouts

Used to display successful results or completed tasks.

Success

GitHub GitLab Obsidian
❌ ❌ βœ…
Success

Displays successful results or positive status.

Check

GitHub GitLab Obsidian
❌ ❌ βœ…
Check

Displays confirmed content or verified information.

Done

GitHub GitLab Obsidian
❌ ❌ βœ…
Done

Displays completed tasks or finished content.

Summary and Organization Callouts

Used to summarize content or provide concise key points.

Abstract

GitHub GitLab Obsidian
❌ ❌ βœ…
Abstract

Provides an overview of a document or content.

Summary

GitHub GitLab Obsidian
❌ ❌ βœ…
Summary

Summarizes and organizes key content.

TLDR

GitHub GitLab Obsidian
❌ ❌ βœ…
Tldr

Too Long; Didn't Read - provides a brief summary of lengthy content.

Error and Problem Callouts

Used to display errors, failures, and issues.

Failure

GitHub GitLab Obsidian
❌ ❌ βœ…
Failure

Displays failed results or problematic situations.

Fail

GitHub GitLab Obsidian
❌ ❌ βœ…
Fail

Indicates failure situations or incorrect results.

Missing

GitHub GitLab Obsidian
❌ ❌ βœ…
Missing

Displays missing content or incomplete information.

Danger

GitHub GitLab Obsidian
❌ ❌ βœ…
Danger

Warns about dangerous situations or serious problems.

Error

GitHub GitLab Obsidian
❌ ❌ βœ…
Error

Displays error situations or error messages.

Bug

GitHub GitLab Obsidian
❌ ❌ βœ…
Bug

Used to report bugs or software defects.

Example and Citation Callouts

Used to show examples or cite content from other sources.

Example

GitHub GitLab Obsidian
❌ ❌ βœ…
Example

Provides specific examples or sample code.

Quote

GitHub GitLab Obsidian
❌ ❌ βœ…
Quote

Displays quotes from other sources or famous sayings.

Cite

GitHub GitLab Obsidian
❌ ❌ βœ…
Cite

Used to specify references or sources.

Advanced Features

Adding Titles (Supported by All Platforms)

GitHub GitLab Obsidian
βœ… βœ… βœ…
Custom Title

You can add a title after the callout type.

Folding/Expanding Feature (Obsidian Only)

GitHub GitLab Obsidian
❌ ❌ βœ…

Syntax:

> [!info]- Collapsed by Default
> Using the minus (-) symbol displays the callout collapsed by default.

> [!info]+ Expanded by Default
> Using the plus (+) symbol displays the callout expanded by default.

Rendered result:

Collapsed by Default

Using the minus (-) symbol displays the callout collapsed by default.

Expanded by Default

Using the plus (+) symbol displays the callout expanded by default.

Nested Callouts (Obsidian Only)

GitHub GitLab Obsidian
❌ ❌ βœ…

Syntax:

> [!warning] Outer Callout
> This is the outer callout.
> 
> > [!tip] Inner Callout
> > You can nest other callouts inside a callout.

Rendered result:

Outer Callout

This is the outer callout.

Inner Callout

You can nest other callouts inside a callout.