nushell/docs/commands/to_md.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

640 B

title layout version
to md command 0.59.0

Convert table into simple Markdown

Signature

> to md --pretty --per-element

Parameters

  • --pretty: Formats the Markdown table to vertically align items
  • --per-element: treat each row as markdown syntax element

Examples

Outputs an MD string representing the contents of this table

> [[foo bar]; [1 2]] | to md

Optionally, output a formatted markdown string

> [[foo bar]; [1 2]] | to md --pretty

Treat each row as a markdown element

> [{"H1": "Welcome to Nushell" } [[foo bar]; [1 2]]] | to md --per-element --pretty