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

…衆ロ難τιáo~ 提交于 2019-12-03 06:28:45

问题


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.


回答1:


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.



回答2:


An empty header, #, followed by a space also works.

> Hello World

# 

> Goodbye world

Unfortunately it isn't much better than <!-- --> But I kind of like it more, and use it.




回答3:


>If I try a non breaking space

&nbsp;

>it line breaks; don't ask me how

Result:

If I try a non breaking space

 

it line breaks; don't ask me how




回答4:


Try this:

Use a U+200B character in-between the quotes, which is defined as a zero-length space to break up the quotes.

> Quote

​

> Quote

It looks like this:

> Quote

> Quote




回答5:


You could use pandoc, which parses your original input as two consecutive blockquotes.



来源:https://stackoverflow.com/questions/12979577/how-can-i-write-two-separate-blockquotes-in-sequence-using-markdown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!