lzakharov / csv2md

Command line tool for converting CSV files into Markdown tables.
MIT License
104 stars 8 forks source link

Support headings output in addition to tables #19

Closed paddy74 closed 2 months ago

paddy74 commented 2 months ago

Description

I have a requirement to translate a CSV file into a set of Markdown headings and bullets. Due to this library's efficiency and small profile, it would be straightforward to add an additional function to table.py which will do so.

Desired Functionality

Input

csv2md table.csv --output-headings --heading-column=0 --heading-level=2

Output

## **Col-A Row-1 Label**: Col-A Row-1 Value

- **Col-B Row-1 Label**: Col-B Row-1 Value
- **Col-C Row-1 Label**: Col-C Row-1 Value

## **Col-A Row-2 Label**: Col-A Row 2 Value

...and so on...

Addtional Suggestions

Future work would allow a user to:

lzakharov commented 2 months ago

Hi! Thank you for your suggestion. This utility focused on the one feature - converting CSV files into Markdown tables. Unfortunately, the proposed format seems too specific and does not fit into the above concept. I think that a more correct solution would be to implement such feature in a separate tool. I will be glad if csv2md will be used for this tool as library.