Skip to content

Commit f055de7

Browse files
authored
Fix tip breaking content layout in some file (#2021)
1 parent 83b1472 commit f055de7

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

book/3rdpartyprompts.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Nerd Fonts are not required, but they can improve the prompt presentation throug
77
> Nerd Fonts patches developer targeted fonts with a high number of glyphs (icons).
88
> Specifically to add a high number of extra glyphs from popular ‘iconic fonts’ such as Font Awesome, Devicons, Octicons, and others.
99
10-
* [Nerd Fonts website](https://www.nerdfonts.com)
11-
* [Source Repository](https://github.com/ryanoasis/nerd-fonts)
10+
- [Nerd Fonts website](https://www.nerdfonts.com)
11+
- [Source Repository](https://github.com/ryanoasis/nerd-fonts)
1212

1313
## oh-my-posh
1414

@@ -66,7 +66,8 @@ Starship running without doing anything manual:
6666

6767
- Starship will create its own configuration / environment setup script
6868
- you simply have to create it in `env.nu` and `use` it in `config.nu`
69-
:::
69+
70+
:::
7071

7172
Here's an example config section for Starship:
7273

book/how_nushell_code_gets_run.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ next:
66
text: (Not so) Advanced
77
link: /book/advanced.md
88
---
9+
910
# How Nushell Code Gets Run
1011

1112
In [Thinking in Nu](./thinking_in_nu.md#think-of-nushell-as-a-compiled-language), we encouraged you to _"Think of Nushell as a compiled language"_ due to the way in which Nushell code is processed. We also covered several code examples that won't work in Nushell due that process.
@@ -281,7 +282,8 @@ In the text below, we use the term _"constant"_ to refer to:
281282

282283
- A `const` definition
283284
- The result of any command that outputs a constant value when provide constant inputs.
284-
:::
285+
286+
:::
285287

286288
By their nature, **_constants_** and constant values are known at Parse-time. This, of course, is in sharp contrast to _variable_ declarations and values.
287289

@@ -317,7 +319,8 @@ Let's analyze the Parse/Eval process for this version:
317319

318320
- An `eval` adds additional parsing during evaluation
319321
- Parse-time constants do the opposite, adding additional evaluation to the parser.
320-
:::
322+
323+
:::
321324

322325
Also keep in mind that the evaluation allowed during parsing is **_very restricted_**. It is limited to only a small subset of what is allowed during a regular evaluation.
323326

@@ -364,7 +367,8 @@ There are two reasons for this:
364367
This isn't currently applicable to Nushell, since the parsed results (IR) are not stored beyond Evaluation. However, this has certainly been considered as a possible future feature.
365368

366369
2. As with Nushell's parse-time constant evaluations, these features help (safely) work around limitations caused by the absence of an `eval` function.
367-
:::
370+
371+
:::
368372

369373
## Conclusion
370374

book/sorting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ The parameters are also passed to the custom closure as a two element list, so t
224224

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

229230
Here's an example of a custom sort which couldn't be trivially written as a key sort. In this example, we have a queue of tasks with some amount of work time and a priority. We want to sort by priority (highest first). If a task has had zero work time, we want to schedule it immediately; otherwise, we ignore the work time.
230231

0 commit comments

Comments
 (0)