我正在添加Markdown支持我的CMS编辑器。

写Markdown内容时,我如何创建两个空行?

我一直在努力,但总是只有一条线。


当前回答

在GitHub Wiki markdown中,我使用散列符号(#),后面跟着两个空格,使换行符变大。它实际上并没有提供多个换行符,但它提供了一个大换行符,很好地满足了我的需求。

而不是:

text
(space)(space)
more text

我做了:

text
(hash mark)(space)(space)
more text

其他回答

我尝试了所有的方法,但这对我来说是有效的,同时使用Pandoc markdown与TexLive作为LaTex引擎。 若要添加空行,可以尝试添加空行,但要删除""

## \newline

只需要重复上面的步骤,每个步骤都会添加一个新的空行

你可以用这个来完美地完成:

texttextexttexttext
 
 
texttexttexttexttext

我只知道下面的选项。如果能把它们都列一个清单,并给出不同之处,那就太好了

# RAW
## Creates 2 Lines that CAN be selected as text
## -------------------------------------------------
### The non-breaking space ASCII character
 
 

### HTML <(br)/> tag
<br />
<br />

## Creates 2 Lines that CANNOT be selected as text
## -------------------------------------------------
### HTML Entity &NewLine;
&NewLine;
&NewLine;

### Backticks with a space inside followed by two spaces
`(space)`(space)(space)
`(space)`(space)(space)
#### sample:
` `  
` `

# End
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>

新建,三空行。古德勒克

在GitHub Wiki markdown中,我使用散列符号(#),后面跟着两个空格,使换行符变大。它实际上并没有提供多个换行符,但它提供了一个大换行符,很好地满足了我的需求。

而不是:

text
(space)(space)
more text

我做了:

text
(hash mark)(space)(space)
more text