Skip to content

Commit b29fb5e

Browse files
committed
Fixed ::: incorrect indentation issue
1 parent c0622be commit b29fb5e

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

zh-CN/book/3rdpartyprompts.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ $env.PROMPT_INDICATOR = $"(ansi y)$> (ansi reset)"
6565

6666
- Starship 将创建自己的配置/环境设置脚本
6767
- 你只需在 `env.nu` 中创建它,并在 `config.nu``use`
68-
:::
68+
69+
:::
6970

7071
下面是一个关于 Starship 的配置示例:
7172

zh-CN/book/custom_commands.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ def "random file" [] {
153153

154154
- 如果目录为空,则返回 `null`
155155
- 否则,返回一个表示随机选择的文件的 `record`
156-
:::
156+
157+
:::
157158

158159
## 自定义命令和管道
159160

zh-CN/book/how_nushell_code_gets_run.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ hello()
193193
4. 输入`ls`
194194
5. 按<kbd>Enter</kbd>
195195
6. Nushell将显示结果
196-
:::
196+
197+
:::
197198

198199
当您在输入命令行后按<kbd>Enter</kbd>时,Nushell会:
199200

@@ -271,7 +272,8 @@ source-env foo.nu
271272

272273
- `const`定义
273274
- 当提供常量输入时输出常量值的任何命令的结果
274-
:::
275+
276+
:::
275277

276278
本质上,**_常量_** 和常量值在解析时是已知的。这与 _变量_ 声明和值形成鲜明对比。
277279

@@ -307,7 +309,8 @@ source $"($my_path)/common.nu"
307309

308310
- `eval`在求值期间添加额外的解析
309311
- 解析时常量则相反,在解析器中添加额外的求值
310-
:::
312+
313+
:::
311314

312315
还需记住,解析期间允许的求值 **_非常有限_** 。它仅限于常规求值允许的一小部分。
313316

@@ -354,7 +357,8 @@ use $"($my_startup_modules)/my-utils.nu"
354357
目前这不适用于Nushell,因为解析结果(IR)不会在求值后存储。不过,这已被考虑作为未来的可能功能。
355358

356359
2. 与Nushell的解析时常量求值一样,这些功能有助于(安全地)解决因缺少`求值函数`而导致的限制。
357-
:::
360+
361+
:::
358362

359363
## 结论
360364

zh-CN/book/overlays.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ module spam {
3535
- "内联"模块(本例中使用)
3636
- 文件
3737
- 目录
38-
:::
38+
39+
:::
3940

4041
要创建覆层,请调用 [`overlay use`](/zh-CN/commands/docs/overlay_use.md)
4142

zh-CN/book/sorting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ ls | sort-by -c {|a, b| $a.size < $b.size }
224224

225225
- `{|a, b| $a < $b }`
226226
- `{ $in.0 < $in.1 }`
227-
:::
227+
228+
:::
228229

229230
这是一个无法简单地写为键排序的自定义排序示例。在这个例子中,我们有一个任务队列,每个任务都有一定的工作时间和优先级。我们想按优先级排序(最高优先)。如果一个任务的工作时间为零,我们想立即安排它;否则,我们忽略工作时间。
230231

zh-CN/book/variables.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ $val
6363

6464
1. `+=``-=``*=``/=` 仅在其根操作预期工作的上下文中有效。例如,`+=` 使用加法,因此不能用于加法通常会失败的上下文
6565
2. `++=` 要求变量****参数是列表。
66-
:::
66+
67+
:::
6768

6869
#### 关于可变性的更多信息
6970

0 commit comments

Comments
 (0)