Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple line quote in Markdown

Tags:

markdown

I am looking for the equivalent of the multiple line code feature in Markdown for quotes. For code blocks I can conveniently write:

```
    this is a code example
```

Does anyone know if something like the following is possible?

>>>
    this should be rendered as a multiple line quote
>>>
like image 285
orschiro Avatar asked Nov 18 '14 10:11

orschiro


People also ask

How do you write multiple lines in Markdown?

Paragraphs. To create paragraphs in Markdown, use one or more lines of consecutive text followed by one or more blank lines. Note: If you don't leave a blank line between blocks of text, they will be collapsed into a single paragraph.

How do I put multiple lines in a Markdown cell in a table?

In summary, if you need to have a table cell span multiple lines when writing Markdown, use the HTML <br> tag, as shown.

How do you quote a paragraph in Markdown?

To create a blockquote, start a line with greater than > followed by an optional space. Blockquotes can be nested, and can also contain other formatting. To keep the quote together, blank lines inside the quote must contain the > character.

How do you use Markdown quotes?

The correct way to write quotes in Markdown is to just write quotes literally, i.e., use " " . They will be converted to the correct LaTeX code (i.e., `` '' ) when Markdown is converted to LaTeX (via Pandoc). The same thing applies to single quotes.


1 Answers

You can use this notation also for multiple lines:

> **Stack1**: https://stackoverflow.com/  
this is split on 2 lines but renders on 1  
> **Stack2**: https://stackoverflow.com/ 
> **Stack3**: https://stackoverflow.com/ 

Stack1: https://stackoverflow.com/ this is split on 2 lines but renders on 1
Stack2: https://stackoverflow.com/
Stack3: https://stackoverflow.com/

For line breaks you could either use </br> or double space at the end of line

like image 104
rh0x Avatar answered Sep 27 '22 23:09

rh0x