[{"data":1,"prerenderedAt":118},["ShallowReactive",2],{"blog-post-pandoc-convert-csv-to-markdown":3,"recent-posts":74},{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":16},"avmFXBEAAC0AkXKG","pandoc-convert-csv-to-markdown",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=av979xIAACoAE1AJ&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avmFXBEAAC0AkXKG%22%29+%5D%5D",[],"2026-11-19T22:45:10+0000",[12],"pandoc-how-to-convert-csv-to-markdown",[],"en-us",[],{"title":17,"date":23,"description":24,"image":29,"content":39},[18],{"type":19,"text":20,"spans":21,"direction":22},"heading1","Pandoc: How to Convert CSV to Markdown",[],"ltr","2026-11-19",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to convert a CSV file to a Markdown table using Pandoc",[],{"dimensions":30,"alt":20,"copyright":6,"url":33,"id":34,"edit":35},{"width":31,"height":32},1280,720,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FdDE2zaQ1nNI4pvFb_pandoc-convert-csv-to-markdown.png?auto=format,compress","dDE2zaQ1nNI4pvFb",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,48,52,55,58,61,64,67,71],{"type":41,"text":42,"spans":43,"direction":22},"heading3","Install Pandoc",[],{"type":45,"text":46,"spans":47,"direction":22},"paragraph","Before we start, make sure you have Homebrew installed on your computer and your CSV file ready in a folder. Install Pandoc with this command:",[],{"type":49,"text":50,"spans":51,"direction":22},"preformatted","brew install pandoc",[],{"type":41,"text":53,"spans":54,"direction":22},"Convert the CSV File",[],{"type":45,"text":56,"spans":57,"direction":22},"First, open your terminal and navigate to the folder containing your CSV file. To turn it into a Markdown table, run this command:",[],{"type":49,"text":59,"spans":60,"direction":22},"pandoc -f csv -t gfm input.csv -o output.md",[],{"type":45,"text":62,"spans":63,"direction":22},"Just swap \u003Ccode>input.csv\u003C\u002Fcode> with your actual filename, and \u003Ccode>output.md\u003C\u002Fcode> with the name you want for your Markdown file. The \u003Ccode>-f csv\u003C\u002Fcode> flag is the format you're converting from, and \u003Ccode>-t gfm\u003C\u002Fcode> is the one you're converting to. The \u003Ccode>gfm\u003C\u002Fcode> format is GitHub-flavored Markdown, which gives you a pipe table that works on GitHub, Obsidian, Notion and most Markdown editors. This finishes almost instantly, and Pandoc doesn't print anything when it works.",[],{"type":45,"text":65,"spans":66,"direction":22},"To make sure everything worked, open \u003Ccode>output.md\u003C\u002Fcode>. Every row of the CSV is now a line in the table, with the header row on top.",[],{"type":68,"oembed":69},"embed",{"embed_url":70,"type":68},"",{"type":45,"text":72,"spans":73,"direction":22},"One more tip: if your data is separated by tabs instead of commas, just swap \u003Ccode>-f csv\u003C\u002Fcode> for \u003Ccode>-f tsv\u003C\u002Fcode>. If you'd rather have Pandoc's own table style, use \u003Ccode>-t markdown\u003C\u002Fcode> instead of \u003Ccode>-t gfm\u003C\u002Fcode>.",[],{"results":75,"page":37,"results_per_page":116,"results_size":116,"total_results_size":117,"total_pages":37},[76,78,97],{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":77},{"image":29,"title":17},{"id":79,"uid":80,"url":6,"type":7,"href":81,"tags":82,"first_publication_date":10,"last_publication_date":10,"slugs":83,"linked_documents":85,"lang":14,"alternate_languages":86,"data":87},"aviRYBEAACkAkBYS","pandoc-convert-html-to-markdown","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=av979xIAACoAE1AJ&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22aviRYBEAACkAkBYS%22%29+%5D%5D",[],[84],"pandoc-how-to-convert-html-to-markdown",[],[],{"image":88,"title":94},{"dimensions":89,"alt":90,"copyright":6,"url":91,"id":92,"edit":93},{"width":31,"height":32},"Pandoc: How to Convert HTML to Markdown","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F0XaRTeXl-LE8mTSK_pandoc-convert-html-to-markdown.png?auto=format,compress","0XaRTeXl-LE8mTSK",{"x":36,"y":36,"zoom":37,"background":38},[95],{"type":19,"text":90,"spans":96,"direction":22},[],{"id":98,"uid":99,"url":6,"type":7,"href":100,"tags":101,"first_publication_date":10,"last_publication_date":10,"slugs":102,"linked_documents":104,"lang":14,"alternate_languages":105,"data":106},"avmFWREAACgAkXJy","pandoc-convert-epub-to-pdf","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=av979xIAACoAE1AJ&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22avmFWREAACgAkXJy%22%29+%5D%5D",[],[103],"pandoc-how-to-convert-epub-to-pdf",[],[],{"image":107,"title":113},{"dimensions":108,"alt":109,"copyright":6,"url":110,"id":111,"edit":112},{"width":31,"height":32},"Pandoc: How to Convert EPUB to PDF","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FzHtmOvgGFqs9GTF1_pandoc-convert-epub-to-pdf.png?auto=format,compress","zHtmOvgGFqs9GTF1",{"x":36,"y":36,"zoom":37,"background":38},[114],{"type":19,"text":109,"spans":115,"direction":22},[],3,74,1795128335116]