Quotes are a common mechanism for mentioning the sources of an article, giving credit to authors, or strengthening the arguments presented.
Or because you feel like putting a witty remark, just like that, as a joke in the middle 😅
Textual quotes in Markdown are created using the greater-than symbol (>).
This symbol is placed at the beginning of a line or paragraph you want to quote. Quotes can be single-line or span multiple lines.
Single-Line Quotes
To quote a single paragraph or line, we place > before the text we want to quote.
> Technology is advancing rapidly, changing the way we live and work.
This renders as:
Technology advances rapidly, changing the way we live and work.
Multi-Line Quotes
If the quote spans several lines, we will place > at the beginning of each line. Alternatively, we can leave a blank line and place > only at the beginning of the first line.
> "Education is the most powerful weapon which you can use to change the world."
>
> — Nelson Mandela
This renders as:
“Education is the most powerful weapon which you can use to change the world.”
— Nelson Mandela
Nested Quotes
Markdown also allows creating nested quotes by adding multiple > symbols.
> Among his great phrases are:
>
> > "Education is the most powerful weapon which you can use to change the world."
> > — Nelson Mandela
This renders as:
Technology is crucial for development:
“Education is the most powerful weapon which you can use to change the world” — Nelson Mandela
Why would you want to do that? No idea, but you can if you want to 😊.
Best Practices for Using Quotes in Markdown
Relevance and Pertinence: Ensure quotes are relevant and support your arguments or presented information.
Clarity and Context: Provide enough context around the quote so readers understand its relevance.
Source Credibility: Use quotes from credible and respected sources to strengthen your document.
