Markdown: Markdown Blockquote Syntax and Nesting

Last updated: 2026-10-14

Blockquotes make your documents more persuasive—whether you're citing an expert opinion or highlighting an important note, blockquotes are the best tool for the job.

1. What You'll Learn


2. A Technical Writing Trainer's Real Story

(1) Pain Point: Misusing Quotes

Jordan was conducting a documentation writing workshop for a tech team and discovered almost everyone was doing "quoting" the wrong way—some manually indented text in gray font, some used italic, some even pasted screenshots of other people's text. Quotes blended into the main body, making it impossible for readers to tell which parts were the author's own words and which were external sources.

(2) Solution: Unify Quote Formatting with >

Jordan set a team rule: all quoted external text, important tips, and warnings must use the > blockquote syntax. The team's linting script checks for standard quote formatting. Three months later, citation consistency jumped from 30% to 98%.


3. Blockquote Basics

(1) Basic Syntax

Use > at the start of a line to create a blockquote:

💡 Tip: Adding > to every line is the safest approach. Some parsers also support a single > at the start of a paragraph:

⚠️ Note: For maximum compatibility, add > to every line.

(2) Blank Lines in Blockquotes

Blank lines inside blockquotes also need a >:

▶ Example: Standard Blockquote Usage

⚠️ Note: Don't go beyond 3 levels of nesting—readability drops sharply beyond that.

▶ Example: Conversational Nested Blockquotes

💡 Tip: Nested blockquotes are great for simulating conversations, multi-level comment threads, or showing a quote-within-a-quote (e.g., in academic papers).


5. Other Elements Inside Blockquotes

(1) Headings in Blockquotes

(2) Lists in Blockquotes

(3) Code Blocks in Blockquotes

▶ Example: Embedding Multiple Elements in a Blockquote

💡 Tip: Blockquotes can contain headings, lists, code blocks, tables, and most other Markdown elements. This turns a blockquote from "just gray text" into a self-contained content block.


6. Blockquotes vs Callout Boxes

The > syntax and the > **💡 Tip:** patterns used throughout this tutorial are both blockquotes, but serve different purposes:

Type Syntax Appearance Purpose
Standard Blockquote > text Gray vertical bar Quoting external sources, dialogue
Tip Callout > **💡 Tip:** text Gray bar + icon Key tips, important notes
Warning Callout > **⚠️ Note:** text Gray bar + icon Warnings, common pitfalls
💡 Tip: In technical documentation, use standard blockquotes for citing external sources, and emoji-enhanced callouts for tips and warnings. Keeping them visually distinct helps readers quickly understand the intent.


7. Advanced Blockquote Usage in Layout

(1) Using Blockquotes as "Sidebars"

(2) Quotes Within Quotes (Layer by Layer)

💡 Tip: Multi-level quotes are common in academic writing, but in technical docs, stick to 2 levels or fewer. The deeper the nesting, the easier it is for readers to get lost.


8. Complete Example: Organizing a Technical Review with Blockquotes

Expected result: A professional architecture review document where blockquotes clearly separate different participants' opinions and the final decisions.


❓ FAQ

Q What's the difference between a blockquote and an indent?
A Blockquotes have a gray vertical bar marker and are visually self-contained blocks. Indentation just shifts the entire block horizontally. Use blockquotes to signal "this content comes from elsewhere"; use indentation for "this continues the main body."
Q Can I put images in a blockquote?
A Yes. > ![alt](image.png) renders as an image inside the blockquote. But large images in blockquotes can feel cramped—use sparingly.
Q What if a blockquote is too long and hurts readability?
A Trim the quoted content to the most essential lines. If a long passage needs quoting, consider summarizing it in your own words and linking to the original at the bottom.
Q What's the difference between callouts and blockquotes?
A Callouts are essentially blockquotes with added emoji and bold text for visual emphasis. Both render as the same HTML <blockquote> element.

📖 Summary


📝 Exercises

  1. Basic: Write a short book review using blockquotes with at least 2 paragraphs separated by a blank > line.

  2. Intermediate: Create a double-nested blockquote simulating a "teacher quotes an expert, then a student quotes the teacher's explanation" scenario. Each level should have at least 2-3 lines.

  3. Challenge: Write a "Technical Decision Log" that combines standard blockquotes (citing external sources), warning callouts (⚠️ risk alerts), tables (approach comparisons), and code blocks (sample code)—all within a blockquote to test the rendering.

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

Content reviewed by MOTO · Found an error? Report it

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏