Draft42 Docs

Callouts

Callouts are colored boxes that highlight important information. Blockquotes are for quotations.

Callout Types

Use > [!TYPE] to create a callout:

md
> [!warning]
> Something to watch out for.

Renders as:

Something to watch out for.

Here are all the types you can use:

TypeAliasesPurpose
noteGeneral supplementary information
infoInformational emphasis
tiphint, importantHelpful advice and best practices
linkRelated resources or references
questionhelp, faqFAQs or prompts for consideration
warningcaution, attentionSomething to watch out for
dangererrorCritical issues requiring attention
failurefail, missingErrors or unsuccessful operations
successcheck, donePositive outcomes or completed tasks
exampleConcrete examples

General information that supplements the main text.

Similar to note, but emphasizes informational content.

Helpful advice or best practices.

Highlight related resources or external references.

FAQs or prompts for consideration.

Something to watch out for.

Critical issues requiring immediate attention.

Errors or unsuccessful operations.

Positive outcomes or completed tasks.

Concrete examples or code snippets.

Type names are case-insensitive — [!WARNING], [!Warning], and [!warning] all work.

Custom Titles

Add a title after the type:

md
> [!warning] Breaking Change
> This API will change in version 2.0.

Renders as:

Breaking Change

This API will change in version 2.0.

Collapsible Callouts

Add - (collapsed by default) or + (expanded by default) after the type to make a callout collapsible:

md
> [!note]- Collapsed by default
> Hidden until you click the header.

Renders as:

md
> [!tip]+ Expanded by default
> Starts open but can be collapsed.

Renders as:

Starts open but can be collapsed.

Without a suffix, the callout is always visible and not collapsible.

Rich Content

You can put almost anything inside a callout — paragraphs, lists, code blocks, images, you name it:

md
> [!example] Mixed Content
>
> Here's a paragraph explaining the concept.
>
> A list of requirements:
> - Rust 1.70+
> - Basic Rust knowledge
>
> And some code:
> ```rust
> let x = 42;
> ```

Renders as:

Mixed Content

Here's a paragraph explaining the concept.

A list of requirements:

  • Rust 1.70+
  • Basic Rust knowledge

And some code:

rust
let x = 42;

Blockquotes

Regular markdown blockquotes render as quotations:

md
> Design is not just what it looks like and feels like.
> Design is how it works.

Renders as:

Design is not just what it looks like and feels like.
Design is how it works.

Add attribution with -- on the last line:

md
> Any fool can write code that a computer can understand.
> Good programmers write code that humans can understand.
>
> -- Martin Fowler

Renders as:

Any fool can write code that a computer can understand.
Good programmers write code that humans can understand.
Martin Fowler