Convert the markdown table to CSV.
If you use Homebrew, run the following:
$ brew tap 515hikaru/tap
$ brew install 515hikaru/tap/mdtable2csv
Or go get
:
$ go get -u github.com/515hikaru/mdtable2csv
$ mdtable2csv
|foo|bar|boo|
|---|---|---|
|a|b|c|^D
foo,bar,boo
a,b,c
Of course, you can use standard input with |
, for example:
$ cat foo.md
|foo|bar|boo|
|---|---|---|
| a | b | c |
$ cat foo.md | mdtable2csv
foo,bar,boo
a,b,c
See mdtable2csv -help
for more details.
MIT