I like to write decision tables in Google Sheets. If you copy to the clipboard, it copies to HTML. Alas, pbpaste doesn’t support pasting HTML, and the text representation throws out too much info.
There’s a nice answer on Stack Overflow on how to do this in Swift.
Can combine this with tidy for nicer formatting:
./pbpaste-html | tidy -xml -q -i