NanoFile

Markdown blockquote

Start a line with a greater-than sign and a space to quote it. Everything that follows on that line, and on the lines after it that also start with the sign, becomes one quote.

A quote
> Nothing here is uploaded.
> Check your network tab.

Nothing here is uploaded. Check your network tab.

Several paragraphs
> First paragraph.
>
> Second paragraph.

First paragraph.

Second paragraph.

The lone `>` on the middle line is what keeps the two paragraphs inside the same quote.

Nested
> a quote
>
> > a quote inside it

a quote

a quote inside it

GitHub callouts
> [!NOTE]
> Useful information a reader should know.

> [!WARNING]
> Something that could go wrong.

[!NOTE] Useful information a reader should know.

[!WARNING] Something that could go wrong.

GitHub, and now several other renderers, style these as coloured admonitions. Elsewhere they are ordinary quotes with a bracketed word.

What usually goes wrong

  • A quote ends at the first line that does not start with >. Forgetting the sign on a continuation line splits one quote into two.
  • Other markdown works inside a quote: lists, code blocks and headings all render, as long as every line keeps its >.
  • The space after the sign is not strictly required, but leaving it out makes the source harder to read and some renderers stricter.

Related