Search code examples
syntaxmarkdown

How can I write two separate blockquotes in sequence using markdown?


I need to place two blockquotes in sequence, however markdown combines them into a single blockquote. The only way I can get them to separate is placing some junk text between them. As this textfield allows me to use Markdown I can demonstrate:

> First Quote

> Second Quote

Results in:

First Quote

Second Quote

While using junk text:

> First Quote

.   
> Second Quote

Results in:

First Quote

.

Second Quote

I cannot use HTML tags or HTML entities. Only Markdown.


Solution

  • You can separate blockquotes without html elements by using comment markup <!-- --> with an extra whiteline between the blocks:

    > Imagination is more important than knowledge.
    
    <!-- -->
    >  Never think of the future. It comes soon enough.
    
    <!-- -->
    > Anyone who has never made a mistake has never tried anything new.
    

    Of course you can use any HTML elements you like as well (as noted by @pepoloan):

    > Imagination is more important than knowledge.
    
    <div></div>
    >  Never think of the future. It comes soon enough.
    
    <div></div>
    > Anyone who has never made a mistake has never tried anything new.