I've found some tools/scripts to convert CSV->(Multi)Markdown, but is there anything to do it in a reverse direction?
I really like tables in Markdown and together with SublimeText and TableEditor plugin it's really convenient --- add columns, tab through cells etc.
but, not everyone likes editing data in a text file, so I would like to convert it to ex. CSV and import to Spreadsheet (Google or Excel) for the others.
Is there anything that can do it automatically or should I create my own script/plugin for pandoc/RedCarpet...
CSV is used for storing and exchanging data. Markdown is human-friendly markup language, which can be automatically translated to HTML.
If you already have a Markdown tool for producing HTML, open the HTML in a browser and copy/paste into Word. Alternately, just open the HTML file itself in Word then save as Word format. and if it is a github markdown, then directly view and copy-paste..
Paste the cells in the Table to Markdown paste area. You can right-click and select "Paste" or type Ctrl+V for Windows or Command+V for macOS.
import pandas as pd
file = open('yourmdfile.md')
data = []
for line in file.readlines():
data.append(line.split('|')) # provide more general splitter
df = pd.DataFrame(data=data)
df.to_csv('generated.csv')
You can convert MD to CSV with the free tableconvert.com webservice
(*) Excel and format real CSV; it requires using GetData+delimiter(Import)
I am not a fan of webapps but unfortunately i was not able to find any app or plugin for text editors that can do this conversion
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With