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

问题描述 投票:0回答:1

我在Swift Playground附带了一些标记文本。如何添加垂直空间以将段落彼此分开?

解析时会忽略编辑器中的空行,并且只要呈现标记,就不会产生空行。

/*:
Paragraph 1 goes here


Paragraph 2 is not seperated through a blank line.
*/
swift-playground
1个回答
0
投票

可以在here找到swift playgrounds标记中的功能文档。

  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.
*/
© www.soinside.com 2019 - 2024. All rights reserved.