{"id":42667,"date":"2023-08-21T08:11:55","date_gmt":"2023-08-21T12:11:55","guid":{"rendered":"http:\/\/technology-hates-you.com\/lm3m\/?p=42667"},"modified":"2023-09-09T11:45:49","modified_gmt":"2023-09-09T15:45:49","slug":"markdown-tables-suck","status":"publish","type":"post","link":"https:\/\/technology-hates-you.com\/lm3m\/42667","title":{"rendered":"Markdown Tables Suck"},"content":{"rendered":"\n<p>In the process of moving all of my notes from one app to another, a blog post for another day, and the biggest pain point so far has been editing Markdown tables.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The app I am going from has a lot of tables, and the app I am going to does everything in Markdown (light weight formatting for plain text files but gives p enough bells and whistles for things like notes and scraping webpages). The problem is the old app includes a bunch of things in the tables like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Created date<\/li>\n\n\n\n<li>Updated data<\/li>\n<\/ul>\n\n\n\n<p>Which I really don&#8217;t need in the new app, or at least don&#8217;t need in the table. <\/p>\n\n\n\n<p>Tables in Markdown are formatted like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>|Name|Tags|URL|Created Date|\n|---|---|---|---|\n|some name|some tag|some url|some date|<\/code><\/pre>\n\n\n\n<p>Which is pretty cool. Tables that are mostly readable in text or rendered as Markdown. <\/p>\n\n\n\n<p>Problem is when you want to remove a column. I cannot find an editor or plugin that allows for manipulation of the table like that. Which means to remove a column, especially more than one column or a column in the middle, you have to get creative or do it all by hand (ugh).<\/p>\n\n\n\n<p>I ended up trying to get creative and went down the regular expressions route. Though I have to eventually end up in Visual Studio, since VS.code doesn&#8217;t support replacing named capture groups (why have capture groups if you cannot use them for replace?) <\/p>\n\n\n\n<p>Only other thing I thought of was to open Sheets\/Excel and import the table, edit it, and then re-export it. No idea if either do that.<\/p>\n\n\n\n<p>The lack of ability to edit tables is a pretty bad experience. Little surprised, given how ubiquitous Markdown has become that there is not another solution for this.<\/p>\n\n\n\n<p>So, I guess it is not really Markdown tables that suck. They do their job pretty well. Updating them is a pain.<\/p>\n\n\n\n<p>-luke<br>Boston, MA <br>2023.08.21<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the process of moving all of my notes from one app to another, a blog post for another day, and the biggest pain point so far has been editing Markdown tables.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"everybody","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":true},"categories":[3,585],"tags":[289,582,584],"class_list":["post-42667","post","type-post","status-publish","format-standard","hentry","category-blog","category-notes","tag-markdown","tag-notes-migration-2023","tag-regex"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1AdCf-b6b","jetpack-related-posts":[{"id":44063,"url":"https:\/\/technology-hates-you.com\/lm3m\/44063","url_meta":{"origin":42667,"position":0},"title":"a public commonplace book","author":"lm3m","date":"2024.02.26 at 07:35 AM","format":false,"excerpt":"I have always loved the idea of commonplace books, a writers sketch book, more or less. Digital versions in things like tickler files have tempted me down the path into many failed or abandoned organizational systems. I have tried to keep physical ones, digital ones, even have a magical one\u2026","rel":"","context":"In &quot;blog&quot;","block_context":{"text":"blog","link":"https:\/\/technology-hates-you.com\/lm3m\/category\/blog"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":681,"url":"https:\/\/technology-hates-you.com\/lm3m\/681","url_meta":{"origin":42667,"position":1},"title":"Weapons of Choice 2012","author":"lm3m","date":"2012.08.30 at 09:58 AM","format":false,"excerpt":"Software Scrivener(http:\/\/www.literatureandlatte.com\/scrivener.php): For actual writing, manipulation, etc. It is an IDE for writers, for all you dorks out there. For you non-dorks, it lets you write you work in logical chunks and then manipulate it into shape before rendering it to a manuscript. Basically, it gives you all the normal\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":437,"url":"https:\/\/technology-hates-you.com\/lm3m\/437","url_meta":{"origin":42667,"position":2},"title":"iphone map\/contact fail","author":"lm3m","date":"2012.03.30 at 10:38 AM","format":false,"excerpt":"So, we are heading to Paris (woot) and as my part I am collecting a list of places (cafes, buildings, bookstores, etc.) that I would like to see. So, as I read about one in a book, or online, I drop a bookmark into the iPhone map app on my\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":111,"url":"https:\/\/technology-hates-you.com\/lm3m\/111","url_meta":{"origin":42667,"position":3},"title":"Mobile Post (let&#8217;s see if the iPhone WordPress app still sucks)","author":"lm3m","date":"2011.05.17 at 03:17 PM","format":false,"excerpt":"Text entry is fixed. Now it does sideways mode, nice. And image embed does not suck. Seems like they fixed it. Woot. Luke W. McCullough | lm3m @msn.com | 05\/17\/2011 | mobile, some where on the side of the road in Somerville, MA","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1188,"url":"https:\/\/technology-hates-you.com\/lm3m\/1188","url_meta":{"origin":42667,"position":4},"title":"Thinking about process, again","author":"lm3m","date":"2013.02.1 at 07:00 PM","format":false,"excerpt":"Thinking a bit about my writing process today. I think a bit about process everyday, I try not to, since it is a black hole of\u00a0continuous self-reflection. I know there are lives to be made out of helping people with process and I don't begrudge them that. But, that is\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"IMG_2462","src":"https:\/\/i0.wp.com\/technology-hates-you.com\/lm3m\/wp-content\/uploads\/2013\/02\/IMG_2462-300x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1048,"url":"https:\/\/technology-hates-you.com\/lm3m\/1048","url_meta":{"origin":42667,"position":5},"title":"Hermes is down","author":"Admin","date":"2012.12.18 at 08:44 AM","format":false,"excerpt":"So my new (old) typewriter is down, ribbon broke. I am actually pretty sad about this, because I have really come to enjoy the process of writing on the beast. I usually write directly into the computer or into notebooks. When writing on the computer things like spell check, the\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"IMG_2187","src":"https:\/\/i0.wp.com\/technology-hates-you.com\/lm3m\/wp-content\/uploads\/2012\/12\/IMG_2187.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/posts\/42667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/comments?post=42667"}],"version-history":[{"count":6,"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/posts\/42667\/revisions"}],"predecessor-version":[{"id":42689,"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/posts\/42667\/revisions\/42689"}],"wp:attachment":[{"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/media?parent=42667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/categories?post=42667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technology-hates-you.com\/lm3m\/wp-json\/wp\/v2\/tags?post=42667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}