-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsimple_markdown.md_intermed.nu
More file actions
52 lines (41 loc) · 1.81 KB
/
simple_markdown.md_intermed.nu
File metadata and controls
52 lines (41 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# this script was generated automatically using numd
# https://github.com/nushell-prophet/numd
const init_numd_pwd_const = '/Users/user/git/numd'
# numd config example 1
# This file is prepended to the intermediate script before execution
$env.config.footer_mode = 'always'
$env.config.table = {
mode: rounded
index_mode: never
show_empty: false
padding: {left: 1, right: 1}
trim: {methodology: truncating, wrapping_try_keep_words: false, truncating_suffix: '...'}
header_on_separator: true
abbreviated_row_count: 1000
}
"#code-block-marker-open-1
```nu" | print
"let $var1 = 'foo'" | nu-highlight | print
let $var1 = 'foo'
print ''
"```" | print
"#code-block-marker-open-3
```nu separate-block" | print
"# This block will produce some output in a separate block
$var1 | path join 'baz' 'bar'" | nu-highlight | print
"```\n```output-numd" | print
# This block will produce some output in a separate block
$var1 | path join 'baz' 'bar' | table --width ($env.numd?.table-width? | default 120) | default '' | into string | lines | each { $'# => ($in)' | str trim --right } | str join (char nl) | str replace -r '\s*$' (char nl) | print; print ''
print ''
"```" | print
"#code-block-marker-open-6
```nu" | print
"# This block will output results inline
whoami" | nu-highlight | print
# This block will output results inline
whoami | table --width ($env.numd?.table-width? | default 120) | default '' | into string | lines | each { $'# => ($in)' | str trim --right } | str join (char nl) | str replace -r '\s*$' (char nl) | print; print ''
print ''
"2 + 2" | nu-highlight | print
2 + 2 | table --width ($env.numd?.table-width? | default 120) | default '' | into string | lines | each { $'# => ($in)' | str trim --right } | str join (char nl) | str replace -r '\s*$' (char nl) | print; print ''
print ''
"```" | print