在 Swift Playgrounds 标记中添加一个空行

Add a blank line in Swift Playgrounds markup

我在 Swift Playground 上写了一些标记文本。 如何添加垂直 space 以将段落彼此分开?

一旦呈现标记,编辑器中的空行将在解析时被忽略,不会导致空行。

/*:
Paragraph 1 goes here


Paragraph 2 is not seperated through a blank line.
*/

可以找到 swift 游乐场标记中的功能文档 here

  1. 在编辑器中使用转义字符 \ 后跟一个空行。
  2. 在编辑器中使用空行包围的不间断字符 

结果:

/*:
Paragraph 1 goes here


Paragraph 2 is not seperated through a blank line.

\
Paragraph 3 is seperated through a blank line.

 

Paragraph 4 is separated through a somewhat larger vertical space.

\
\
Paragraph 5 is separated through two blank lines.
*/