You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ numd run $path --ignore-git-check
113
113
Use the `--eval` option to prepend Nushell code to the intermediate script. This lets you set visual settings and other configuration before your code runs.
114
114
115
115
```nushell
116
-
let path = $nu.temp-path | path join simple_nu_table.md
116
+
let path = $nu.temp-dir | path join simple_nu_table.md
117
117
118
118
# let's generate some markdown and save it to the `simple_nu_table.md` file in the temp directory
119
119
"```nushell\n[[a b c]; [1 2 3]]\n```\n" | save -f $path
@@ -209,6 +209,33 @@ numd capture stop --help
209
209
# =>
210
210
```
211
211
212
+
### `numd parse-md`
213
+
214
+
Parse markdown into a table of semantic blocks (headers, paragraphs, code blocks, lists, blockquotes, frontmatter) with extracted content and metadata.
215
+
216
+
```nushell
217
+
numd parse-md --help
218
+
# => Parse markdown into semantic blocks
219
+
# =>
220
+
# => Usage:
221
+
# => > parse-md (file)
222
+
# =>
223
+
# => Flags:
224
+
# => -h, --help: Display the help message for this command
225
+
# =>
226
+
# => Parameters:
227
+
# => file <path>: optional path to markdown file (can also pipe content) (optional)
228
+
# =>
229
+
# => Input/output types:
230
+
# => ╭───┬─────────┬────────╮
231
+
# => │ # │ input │ output │
232
+
# => ├───┼─────────┼────────┤
233
+
# => │ 0 │ string │ table │
234
+
# => │ 1 │ nothing │ table │
235
+
# => ╰───┴─────────┴────────╯
236
+
# =>
237
+
```
238
+
212
239
### Some random familiar examples
213
240
214
241
```nushell
@@ -234,7 +261,7 @@ ls z_examples | sort-by name | reject modified size
0 commit comments