Thursday, July 6, 2023

getting wiki tables into markdown

 How to get tables from wikipedia into markdown without loosing the formatting

OCR is cool, the thing on iphone can preserve some formatting but I was loosing the formatting on my mac. if you mess with my tables thats a deal breaker for me. heres my web tools solution:

wikitable2csv 

csv2markdown

of course you could use pandoc

$ pandoc input.csv -t markdown -o output.md

tables generator is ok too

theres a python package called csvtomd

pip install csvtomd

$ csvtomd input.csv > output.md


No comments:

Post a Comment