@@ -116,9 +116,9 @@ Markdown doesn't have strict rules about how to process lists. When we moved
116
116
from Jekyll to Hugo, we broke some lists. To fix them, keep the following in
117
117
mind:
118
118
119
- - Make sure you indent sub-list items **2 spaces**.
119
+ - Make sure you indent sub-list items **2 spaces**.
120
120
121
- - To end a list and start another, you need a HTML comment block on a new line
121
+ - To end a list and start another, you need an HTML comment block on a new line
122
122
between the lists, flush with the left-hand border. The first list won't end
123
123
otherwise, no matter how many blank lines you put between it and the second.
124
124
-->
@@ -133,18 +133,18 @@ Markdown 在如何处理列表方面没有严格的规则。在我们从 Jekyll
133
133
<!--
134
134
### Bullet lists
135
135
136
- - This is a list item
137
- * This is another list item in the same list
138
- - You can mix `-` and `*`
136
+ - This is a list item.
137
+ * This is another list item in the same list.
138
+ - You can mix `-` and `*`.
139
139
- To make a sub-item, indent two spaces.
140
140
- This is a sub-sub-item. Indent two more spaces.
141
141
- Another sub-item.
142
142
-->
143
143
### 项目符号列表 {#bullet-lists}
144
144
145
- - 此为列表条目
146
- * 此为另一列表条目,位于同一列表中
147
- - 你可以将 ` - ` 和 ` * ` 混合使用
145
+ - 此为列表条目。
146
+ * 此为另一列表条目,位于同一列表中。
147
+ - 你可以将 ` - ` 和 ` * ` 混合使用。
148
148
- 要开始子列表,缩进两个空格。
149
149
- 这是另一个子子条目。进一步多缩进两个空格。
150
150
- 另一个子条目。
@@ -178,8 +178,8 @@ Markdown 在如何处理列表方面没有严格的规则。在我们从 Jekyll
178
178
179
179
<!--
180
180
- A bullet list item can contain a numbered list.
181
- 1. Numbered sub-list item 1
182
- 2. Numbered sub-list item 2
181
+ 1. Numbered sub-list item 1
182
+ 1. Numbered sub-list item 2
183
183
-->
184
184
- 项目符号列表条目中还可以包含编号列表。
185
185
1 . 编号子列表条目一
@@ -194,44 +194,41 @@ Markdown 在如何处理列表方面没有严格的规则。在我们从 Jekyll
194
194
<!--
195
195
### Numbered lists
196
196
197
- 1. This is a list item
198
- 2. This is another list item in the same list. The number you use in Markdown
199
- does not necessarily correlate to the number in the final output. By
200
- convention, we keep them in sync.
201
- 3. {{<note>}}
202
- For single-digit numbered lists, using two spaces after the period makes
203
- interior block-level content line up better along tab-stops.
204
- {{</note>}}
197
+ 1. This is a list item
198
+ 1. This is another list item in the same list. The number you use in Markdown
199
+ does not necessarily correlate to the number in the final output. By
200
+ convention, we keep them in sync.
205
201
-->
206
202
### 编号列表 {#numbered-lists}
207
203
208
204
1 . 此为列表条目
209
- 2 . 此为列表中的第二个条目。在 Markdown 源码中所给的编号数字与最终输出的数字
205
+ 1 . 此为列表中的第二个条目。在 Markdown 源码中所给的编号数字与最终输出的数字
210
206
可能不同。建议在紧凑列表中编号都使用 1。如果条目之间有其他内容(比如注释
211
207
掉的英文)存在,则需要显式给出编号。
212
- 3 . {{<note >}}
213
- <!--
214
- For single-digit numbered lists, using two spaces after the period makes
215
- interior block-level content line up better along tab-stops.
216
- -->
217
- 对于单个数字的编号列表,在句点(` . ` )后面加两个空格。这样有助于将列表的
218
- 内容更好地对齐。
219
- {{</note >}}
208
+
209
+ {{<note >}}
210
+ <!--
211
+ For single-digit numbered lists, using two spaces after the period makes
212
+ interior block-level content line up better along tab-stops.
213
+ -->
214
+ 对于单个数字的编号列表,在句点(` . ` )后面加两个空格。这样有助于将列表的
215
+ 内容更好地对齐。
216
+ {{</note >}}
220
217
221
218
<!-- separate lists -->
222
219
223
220
<!--
224
- 1. This is a new list. With Hugo, you need to use a HTML comment to separate
225
- two consecutive lists. **The HTML comment needs to be at the left margin.**
226
- 2. Numbered lists can have paragraphs or block elements within them.
221
+ 1. This is a new list. With Hugo, you need to use an HTML comment to separate
222
+ two consecutive lists. **The HTML comment needs to be at the left margin.**
223
+ 1. Numbered lists can have paragraphs or block elements within them.
227
224
228
- Indent the content to be the same as the first line of the bullet
229
- point. **This paragraph and the code block line up with the `N` in
230
- `Numbered` above.**
225
+ Indent the content to be the same as the first line of the bullet
226
+ point. **This paragraph and the code block line up with the `N` in
227
+ `Numbered` above.**
231
228
-->
232
229
1 . 这是一个新的列表。 使用 Hugo 时,你需要用 HTML 注释将两个紧挨着的列表分开。
233
230
** HTML 注释需要按左边顶边对齐。**
234
- 2 . 编号列表条目中也可以包含额外的段落或者块元素。
231
+ 1 . 编号列表条目中也可以包含额外的段落或者块元素。
235
232
236
233
后续段落应该按编号列表文字的第一行左侧对齐。
237
234
** 此段落及下面的代码段都与本条目中的第一个字“编”对齐。**
@@ -242,8 +239,8 @@ Markdown 在如何处理列表方面没有严格的规则。在我们从 Jekyll
242
239
243
240
<!--
244
241
- And a sub-list after some block-level content. This is at the same
245
- "level" as the paragraph and code block above, despite being indented
246
- more.
242
+ "level" as the paragraph and code block above, despite being indented
243
+ more.
247
244
-->
248
245
- 编号列表条目中可以在块级内容之后有子列表。子列表的符号项要与上层列表条目文字左侧对齐。
249
246
@@ -477,20 +474,23 @@ source for this page).
477
474
## Links
478
475
479
476
To format a link, put the link text inside square brackets, followed by the
480
- link target in parentheses. [Link to Kubernetes.io](https://kubernetes.io/) or
481
- [Relative link to Kubernetes.io](/)
477
+ link target in parentheses.
478
+
479
+ - `[Link to Kubernetes.io](https://kubernetes.io/)` or
480
+ - `[Relative link to Kubernetes.io](/)`
482
481
483
482
You can also use HTML, but it is not preferred.
484
- <a href="https://kubernetes.io/">Link to Kubernetes.io</a>
483
+ For example, ` <a href="https://kubernetes.io/">Link to Kubernetes.io</a>`.
485
484
-->
486
485
## 链接 {#links}
487
486
488
487
要格式化链接,将链接显示文本放在方括号中,后接用圆括号括起来的链接目标。
489
- [ 指向 Kubernetes.io 的链接] ( https://kubernetes.io/ ) 或
490
- [ 到 Kubernetes.io 的相对链接] ( / ) 。
488
+
489
+ - ` [指向 Kubernetes.io 的链接](https://kubernetes.io/) ` 或
490
+ - ` [到 Kubernetes.io 的相对链接](/) `
491
491
492
492
你也可以使用 HTML,但这种方式不是推荐的方式。
493
- <a href =" https://kubernetes.io/ " >到 Kubernetes.io 的链接</a >。
493
+ 例如, ` <a href="https://kubernetes.io/">到 Kubernetes.io 的链接</a> ` 。
494
494
495
495
### 中文链接
496
496
@@ -595,7 +595,7 @@ You can also use HTML for images, but it is not preferred.
595
595
即使你不想使用 figure 短代码,图片也可以展示为链接。这里,铅笔图标指向
596
596
Kubernetes 网站。外层的方括号将整个 image 标签封装起来,链接目标在末尾的圆括号之间给出。
597
597
598
- [ ![ pencil icon ] ( /images/pencil.png )] ( https://kubernetes.io )
598
+ [ ![ 铅笔图标 ] ( /images/pencil.png )] ( https://kubernetes.io )
599
599
600
600
你也可以使用 HTML 来嵌入图片,不过这种方式是不推荐的。
601
601
@@ -690,7 +690,7 @@ graph TD;
690
690
```
691
691
692
692
<!--
693
- Produces:
693
+ Produces:
694
694
-->
695
695
会产生:
696
696
@@ -742,7 +742,7 @@ sequenceDiagram
742
742
```
743
743
744
744
<!--
745
- Produces:
745
+ Produces:
746
746
-->
747
747
会产生:
748
748
@@ -772,9 +772,9 @@ sequenceDiagram
772
772
{{</ mermaid >}}
773
773
774
774
<!--
775
- <br>More [examples](https://mermaid-js.github.io/mermaid/#/examples) from the official docs.
775
+ You can check more [examples](https://mermaid-js.github.io/mermaid/#/examples) from the official docs.
776
776
-->
777
- < br >在官方网站上有更多的 [ 示例] ( https://mermaid-js.github.io/mermaid/#/examples ) 。
777
+ 你可以查阅官方网站上的更多 [ 示例] ( https://mermaid-js.github.io/mermaid/#/examples ) 。
778
778
779
779
<!--
780
780
## Sidebars and Admonitions
@@ -813,6 +813,7 @@ A sidebar offsets text visually, but without the visual prominence of
813
813
> ``` bash
814
814
> sudo dmesg
815
815
> ` ` `
816
+
816
817
< ! --
817
818
# ## Admonitions
818
819
@@ -822,8 +823,8 @@ Admonitions (notes, warnings, etc) use Hugo shortcodes.
822
823
823
824
提醒框(说明、警告等等)都是用 Hugo 短代码的形式展现。
824
825
825
- < ! --
826
826
{{< note > }}
827
+ < ! --
827
828
Notes catch the reader' s attention without a sense of urgency.
828
829
829
830
You can have multiple paragraphs and block-level elements inside an admonition.
0 commit comments