This command generates svg table from csv format.
The reason why I make this command is below.
- The table may be cut by pdf format.
- Many web sites don't accept html format as attach files.
- Png format files don't include copyable texts.
go get -u github.com/umaumax/csv2svg/...
csv2svg data/sample.csv
# output is data/sample.svg
csv2svg -title="$(echo 'This is title.\nYou can use multi lines for title.⭐⭐⭐⭐⭐')" data/sample.csv
cat data/sample.csv | csv2svg
# output is /dev/stdout
# markdown to csv command example
cat table.md | sed 's/^| *//g' | sed 's/|[^|]*$//g' | grep -v "\----" | sed 's/,/、/g' | sed 's/ *| */,/g'
- Write test code!
- accept markdown table format file
- output file flag
- table title by flag or file name?
- Don't surround words by
"in csv files.? (maybe fixed by lazy option in code)
run below code before push
./pre_push_hook.sh