A markdown table generation tool from CSV/TSV.
$ mdt < hoge.csv
| headerA | headerB |
| ------- | ---------------------- |
| short | very very long content |mdt is very simple command line tool, so you can integrate with other tools like pbpaste, Automator, etc...
For example, you can use mdt with Automator Service on GitHub PR/Issue page.
- Convert from CSV/TSV.
- Auto formatting.
- Support multibyte contents.
- Define align at CSV/TSV header ex.
:headerA:, headerB: - Repeating execution.
- Specify a header line (
-Hoption).
See also examples.
$ go get github.com/monochromegane/mdt/...- Create new Automator Service.
- Select
Run Shell Scriptaction. Service receives selected->text- Check
Output replaces selected text - Input
/path/to/mdtatRun Shell Script(pass inputisto stdin).
You can call the service by shortcut key.
System Preferences > Keyboard > Shortcuts tab > Services > Select your service, and set shortcut.
- Fork it
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...command and confirm that it passes - Run
gofmt -s - Create new Pull Request

