Markdown Admonitions

Markdown Admonitions

Tirsasaki 4 Februari 2025
Share:

Admonitions are special callout blocks used to highlight important information in Markdown. They help make content more structured and visually engaging.

Basic Admonitions

Information

Info

This is an informational callout. Use it to highlight useful details.

> [!info]
> This is an informational callout. Use it to highlight useful details.

Note

Note

Notes provide additional context or clarifications.

> [!note]
> Notes provide additional context or clarifications.

Tip

Tip

Tips offer helpful advice or best practices.

> [!tip]
> Tips offer helpful advice or best practices.

Foldable Callouts

You can create foldable callouts to hide or expand content when needed.

What is an FAQ callout?

This is a foldable FAQ callout. Click to expand and reveal the answer.

> [!faq]- What is an FAQ callout?
> This is a foldable FAQ callout. Click to expand and reveal the answer.

Nested Callouts

Admonitions can be nested for better structuring of complex information.

What should I do?
Make a checklist
Here is an example checklist for reference.
> [!question] What should I do?
> > [!todo] Make a checklist
> > > [!example] Here is an example checklist for reference.

Supported Admonition Types

There are various types of callouts available:

Abstract

Use for summarizing key points.

Todo

A to-do list or pending tasks reminder.

Success

Indicates a successful operation or positive outcome.

Question

Used for raising questions or discussions.

Warning

Warns users about potential risks or issues.

Failure

Highlights a failure or an error situation.

Danger

Use for critical warnings or severe risks.

Bug

Reports a bug or issue.

Example

Provides an example or use case.

Quote

Displays a quoted text for emphasis.

> [!Abstract]
> Use for summarizing key points.

Similarly, you can use other types of admonitions by replacing info with the desired type, such as warning, success, or bug.

Using admonitions effectively can enhance readability and comprehension, making your Markdown documentation more structured and user-friendly.

Related Posts