How to Format Block Quotes
Format block quotes in Markdown, HTML, LaTeX and word processors. Handle quotation marks and apostrophes, add markers safely, and check nothing else changed.
A block quote, also called a paragraph quote or indented quote, sets a longer passage apart from your own text. Instead of wrapping the words in quotation marks, you give them their own block, usually indented or marked at the start of each line. This guide covers the formatting itself, how quotation marks change when a quote becomes a block, and how to add block quote markup without altering the quoted words.
What block quote formatting does to your text
The input is a passage you are quoting. That can be a sentence, several paragraphs, a stanza of verse, or a reply in an email thread. The output is the same words, set off visually and, in markup languages, tagged as quoted material. Four kinds of change are involved:
- Layout: the passage gets its own block, usually indented from the left margin and sometimes from the right.
- Markup: depending on the format, you add a line prefix (Markdown and plain-text email), an element (HTML), or an environment (LaTeX).
- Punctuation: the outer quotation marks are usually removed, because the indentation already signals a quotation. Quotation marks inside the passage may change as a result.
- Content: nothing else in the quoted words should change. Spelling, capitalization, internal punctuation and line breaks that carry meaning, such as line breaks in poetry, stay exactly as in the source.
When a quote should become a block
Style guides set the length at which a quotation moves from running text into a block. The thresholds most often cited are APA at 40 words or more, MLA at more than four lines of prose, and Chicago at roughly 100 words or more. These figures were not included in the evidence supplied for this article, and style manuals change between editions, so check the edition your publisher, school or style sheet requires. If you have no required style, a common rule of thumb is to use a block whenever the quote runs longer than a few lines or spans more than one paragraph.
Handling quotation marks inside a block quote
In US style, a short quotation in running text uses double quotation marks, and a quotation nested inside it uses single marks. When the same passage becomes a block quote, the outer double marks are dropped, and the nested single marks are promoted to double marks.
Example – before (run-in quote):
The report concluded, “Staff described the process as ‘slow but fair,’ and it’s still in use.”
Example – after (block quote, outer marks removed, inner marks promoted):
The report concluded:
> Staff described the process as “slow but fair,” and it’s still in use.
Be careful if you do this with a find-and-replace tool. In typographic (smart) quotes, the closing single quotation mark and the apostrophe are the same character. A blanket replacement of single quotes with double quotes would turn “it’s” into “it”s”. The table shows the characters involved.
| Character | Code point | Typical role |
| ‘ | U+2018 | Opening single quotation mark |
| ’ | U+2019 | Closing single quotation mark and apostrophe |
| “ | U+201C | Opening double quotation mark |
| ” | U+201D | Closing double quotation mark |
| ' | U+0027 | Straight apostrophe or single quote |
| " | U+0022 | Straight double quote |
Promote nested quotes by hand, or step through each match and confirm it before you replace it. Searching for U+2018 is fairly safe, because it rarely appears as an apostrophe, though some converters wrongly use it for leading apostrophes such as ’90s. Every U+2019 needs a human decision. If your text uses straight quotes, the same problem applies to U+0027.
Formatting block quotes in Markdown
Markdown marks a block quote by starting each line with a greater-than sign followed by a space. Plain-text email replies use the same convention.
- 1. Put a blank line before and after the quote so it is separated from surrounding paragraphs.
- 2. Start each line of the quoted passage with > and a space.
- 3. For a blank line between quoted paragraphs, use a line containing only >. A truly empty line ends the quote, and the next paragraph begins a separate block quote.
- 4. Remove the outer quotation marks and adjust nested ones as described above.
- 5. Put the attribution after the quote, either outside the block or on a final quoted line, according to your style.
Example – before:
The handbook puts it plainly.
Keep a copy of the original file.
Never edit the only version you have.
Example – after:
The handbook puts it plainly:
> Keep a copy of the original file.
>
> Never edit the only version you have.
Do not indent a quote with four spaces or a tab in Markdown. Most renderers treat indented lines as a code block and display them in a monospace font as literal text. To nest a quote inside a quote, add a second marker: >> or > >.
Adding markers to many lines at once
For a long passage in a plain-text or Markdown file, a stream editor can add the prefix to every line. The following is an illustrative GNU sed command. It has not been run against your input, so check its output as described in the final section.
sed -E 's/^(.)/> \1/; s/^$/>/' passage.txt > quoted.md
The first substitution adds > and a space to every line that contains at least one character. The second turns empty lines into a bare >, which keeps multi-paragraph quotes together without leaving a trailing space. The output goes to a new file, so the original stays untouched. If you use sed -i to edit in place, add a backup suffix such as -i.bak so you can recover the original.
Line endings change the result. In a file with Windows CRLF line endings, a blank-looking line still contains a carriage return (\r), so the first rule matches it and produces “> ” followed by \r instead of a bare >. Convert the file to LF line endings first, for example with dos2unix or sed 's/\r$//', or check the file with a tool that shows invisible characters. The command treats text as lines and does not change character encoding. It does not touch any quotation marks, curly or straight.
Formatting block quotes in HTML
HTML has a dedicated blockquote element. Browsers indent it by default, and you can restyle it with CSS. Wrap each quoted paragraph in its own p element inside it. The optional cite attribute can hold the address of the source, but browsers do not display it, so put a visible attribution next to the quote. A common pattern places the attribution in a figcaption outside the blockquote.
<figure>
<blockquote>
<p>Keep a copy of the original file.</p>
<p>Never edit the only version you have.</p>
</blockquote>
<figcaption>— Example attribution, Team Handbook</figcaption>
</figure>
Formatting block quotes in LaTeX
Standard LaTeX classes provide two environments. Use quote for short or single-paragraph passages. Use quotation for multi-paragraph passages, because it indents the first line of each paragraph. Both indent the whole block from both margins.
\begin{quotation}
Keep a copy of the original file.
Never edit the only version you have.
\end{quotation}
Formatting block quotes in word processors
In a word processor, set the indent through the paragraph’s indentation settings, or create a reusable paragraph style for quotes. Do not type spaces or tabs at the start of each line. Manual spacing breaks when the text reflows, and the document no longer records which text is a quote. A dedicated style lets you change every block quote at once and keeps the quoted text separate from your own. Menu names and default quote styles vary between applications and versions. This article had no source evidence for any specific program, so follow your application’s documentation for the exact steps.
Block quotes versus large pull quotes
People searching for large quotes sometimes mean pull quotes. A pull quote is a short excerpt from your own article, repeated in large type as a design element. A block quote presents source material at normal or slightly smaller size and is part of the text. If you are quoting a source, use block quote formatting. Use pull quote styling only for excerpts that also appear in the body text.
Checking the result
- Preview the rendered output and confirm the quote appears as one block, or as the number of blocks you intended.
- Confirm that blank lines between quoted paragraphs carry a marker, so the quote did not split.
- Check that the outer quotation marks are gone and that nested marks were promoted without changing any apostrophes.
- If you ran a straight-to-smart quote converter afterward, check the first character after each > marker, and exclude code blocks from conversion so their straight quotes stay intact.
- Compare the quoted text with the source to confirm that only markup changed.
For Markdown produced with the sed command above, you can remove the markers again and compare the result with the original. If the comparison prints nothing, only the markers changed. This is an illustrative check and assumes the original lines did not already begin with >.
sed -E 's/^> ?//' quoted.md | diff passage.txt -
If the comparison shows differences, restore the original from your backup or untouched source file, fix the cause (often CRLF line endings), and run the command again on a fresh copy.