Markdown by Example: Blockquotes
Blockquotes are used to quote text from another source. This example shows how to create single and nested blockquotes.
Code
> This is a blockquote.
> It can span multiple lines.
>
> You can have blank lines inside.
> Blockquotes can also contain other elements:
> - Lists
> - **Bold text**
> - Code blocks
> Nested blockquotes:
>
> > This is a nested quote.
> > It looks like a reply in an email thread.Explanation
Blockquotes are created using the greater-than symbol > at the start of the line, similar to email reply conventions. You can put a > before every line of the quote, or just before the first line of a paragraph (lazy wrapping), though putting it on every line is cleaner.
Blockquotes can contain other Markdown elements, including headers, lists, and code blocks. This makes them very versatile for highlighting notes, warnings, or excerpts from other documents. The styling usually adds a left border and changes the text color to distinguish it from the main body.
You can nest blockquotes by adding additional > symbols. > > text creates a level 2 blockquote, which is indented further. This is commonly used in forum discussions or email threads to show the history of the conversation.
Code Breakdown
> initiates the blockquote environment.> > creates a nested quote, rendering inside the parent quote.
