Markdown basics

Blockquotes and Callouts in Markdown

A blockquote is a line that starts with >. A callout is a blockquote whose first line is a type in square brackets with an exclamation mark, like > [!NOTE]. That is the whole syntax. What follows is the part the one-line answer leaves out: which small spacing mistakes turn a callout back into a grey quote, which of the 27 type names get a colour, how GitHub and Obsidian differ from each other on the same syntax, and what a callout still looks like after you export the file.

QuickMark on iPad in split view. Left: Markdown source with a plain blockquote, a nested quote, and callouts marked [!NOTE], [!TIP] Custom title and [!WARNING]. Right: the rendered page with a grey quote bar, a blue Note box, a green box titled Custom title and an amber Warning box containing a bullet list
Source on the left, result on the right, in QuickMark's iPad split view. Captured on an iPad (A16) simulator while writing this post.

Plain blockquotes

Put > and a space in front of a line. Put another > in front of that to nest one quote inside another.

You write
> A plain blockquote.
>
> > A quote inside a quote.
You get

A plain blockquote.

A quote inside a quote.

The empty > line in the middle matters, and it is the first of several rules that are easier to see than to describe. I ran each of these through QuickMark's own renderer before writing them down:

You writeYou get
> one
>
> two
One quote holding two paragraphs.
> one

> two
Two separate quotes. A truly blank line ends a quote.
> one
two
One quote reading "one two". The second line has no > but still joins the quote.
>no spaceStill a quote. The space after > is optional.
    > quoteA code block showing a literal >. Four spaces of indent win over the quote marker.

The third row catches people most often. Markdown lets a line with no marker carry on the paragraph above it, so a sentence you meant to write after the quote ends up inside it. If a quote is swallowing the next line, the fix is a blank line after the quote, not more > characters.

Anything that works in a document works inside a quote as well: headings, lists, code blocks with syntax highlighting, even another callout.

Callouts: one line turns a quote into a box

Write the type on the first line of the quote, in square brackets with an exclamation mark. Anything after it on the same line becomes the title. Leave it off and the type name is the title.

You write
> [!NOTE]
> The build ships Friday.

> [!TIP] Faster review
> Tag the PR with `ready`.
You get

Note
The build ships Friday.

Faster review
Tag the PR with ready.

The type is not case-sensitive, so [!note] and [!NOTE] are the same thing. A title can be the whole callout, too: > [!WARNING] Heads up on its own renders a box with just that heading and no empty paragraph under it.

QuickMark on iPhone showing a Release checklist rendered as a blue Note box, a green box titled Faster review, an amber Warning box, a red box titled Do not skip, a purple Question box and a grey plain quote with a nested quote
Five callout colours and a plain quote, rendered on an iPhone 17 Pro simulator.

The five mistakes that silently undo a callout

None of these show an error. The callout just renders as an ordinary grey quote with the bracket text printed in it, which is easy to miss in a long file.

You writeCallout?Why
> [!NOTE]TitleNoThe title needs a space before it.
> [! NOTE]NoNo space is allowed inside the brackets.
> Hello
> [!NOTE]
NoThe marker only counts on the first line of the quote.
> [!1st]NoA type has to start with a letter.
    > [!NOTE]NoFour spaces of indent make it a code block, as with plain quotes.
>[!NOTE]YesNo space after > is fine.
> [!my-type]YesLetters, digits, hyphens and underscores are all allowed after the first letter.

Which types get which colour

QuickMark knows 27 type names, exactly the list Obsidian documents: 13 types plus their aliases. They fall into five colour families. A few names only get a special title and stay grey, and so does any type the app has never heard of.

ColourTypes
Bluenote, info, todo
Greentip, hint, success, check, done
Amberwarning, caution, attention, important
Reddanger, error, bug, failure, fail, missing
Purplequestion, help, faq, example
Greyabstract, summary, tldr, quote, cite, and any unknown type

Default titles are mostly the type name with a capital letter, with a few exceptions worth knowing: tldr shows as "TL;DR", todo as "To-do", hint as "Tip", check as "Success", cite as "Quote". An unknown type keeps its own name, so [!RECIPE] becomes a grey box titled "Recipe". The iPad screenshot below shows one.

Each family has its own shade in dark mode, and the reading themes restyle callouts to match (the Docs theme turns them into rounded cards, for example). More on that in the reading themes post.

GitHub, Obsidian and QuickMark read the same line differently

The > [!TYPE] syntax started in Obsidian, and GitHub later adopted a narrower version of it that it calls alerts. A file that looks right in one place can look different in another, so here is what each one's own documentation says, next to what I measured in QuickMark.

GitHubObsidianQuickMark
Types513 + aliases27 names, 5 colours
Custom titleNot listedYesYes
NestingNoYesYes
FoldingNot listedYesAlways open
IconsYesYesNo
Unknown typeNot listedLooks like noteGrey

GitHub's five are NOTE, TIP, IMPORTANT, WARNING and CAUTION, and its docs say alerts "cannot be nested within other elements". "Not listed" means their documentation does not mention it, not that it is proven absent. In QuickMark a callout nests inside another callout and inside a list item, and an unknown type is grey and titled with its own name.

Two differences are worth spelling out because they are not bugs, just different choices.

Folding. Obsidian really collapses a [!TIP]- callout until you click it. QuickMark reads the - and + so they never leak into the title, but it renders every callout expanded. If you rely on folded callouts to hide long content, Obsidian does that job better today. The upside is that nothing is ever hidden in a PDF or a printed page.

Colours. Obsidian treats important as another name for tip, so it gets the tip colour there. QuickMark groups important with the amber warnings instead, so the same line is amber here. The text in your file is the same either way; only the tint changes, so a GitHub README still looks like GitHub on GitHub.

If your notes live in an Obsidian vault, callouts are one of the things that carry over cleanly when you open the same files in QuickMark. The wider comparison is in QuickMark vs Obsidian.

QuickMark on iPad in split view showing, from top to bottom, a plain and nested quote, a blue Note, a green Custom title callout, an amber Warning with a list and code, a blue Outer callout containing a red Inner callout, and a grey Recipe callout
A callout nested inside a callout, and an unknown [!RECIPE] type falling back to grey. iPad (A16) simulator.

Typing them faster

On the Mac, select some lines and choose Format ▸ Quote (⇧⌘"). It adds > to the start of every selected line, and skips lines that already have one, so pressing it twice does not produce a nested quote. On iPhone and iPad the same action is the quote key on the formatting bar above the keyboard. Neither writes the [!TYPE] part for you. Type that on the first line yourself.

For the rest of the syntax on one page, see the Markdown cheat sheet.

What happens to a callout when you export

PDF, PNG, HTML and EPUB are all made from the rendered preview, so callouts keep their coloured bar, tinted background and title. The HTML and EPUB files carry the stylesheet inside them, so the colours survive wherever the file is opened.

Word is the exception. I exported a callout and read the .docx it produced: the title arrives as an ordinary paragraph, and the body as indented paragraphs with bold and italics intact. There is no coloured box and no bar in Word. Plain blockquotes come out the same way, indented. If the look of a callout matters in the final document, export to PDF instead. The full list of what Word keeps and loses is in Markdown to Word.

QuickMark app icon

Get rendered Markdown previews everywhere

QuickMark is a free, native Markdown app for Mac, iPhone and iPad. Live preview, export and publish built in.