๐พ Archived View for finn.lesueur.nz โบ posts โบ markdown-table-generator โบ index.gmi captured on 2023-07-22 at 16:42:11. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2023-06-14)
-=-=-=-=-=-=-
Welcome to my Gemini capsule. I am a Science and Physics teacher from Christchurch, New Zealand who writes code in his spare time, but would really rather be outside doing almost any type of sport! ๐ ๐โโ๏ธ ๐ฟ ๐ถ ๐ดโโ๏ธ ๐ง ๐งโโ๏ธ
[Install Apple Shortcut][shortcut]
[Markdown][md] is a fantastic language to markup plain text in a way that still leaves the source readable - unlike HTML, for example. It has the ability to do tables, but they're not very fun to work with. The markup is simple but still cumbersome.
`markdown
| | AR | ER | IR |
|---------------------|------|------|------|
| Yo | o | o | o |
| El/Ella | a | e | e |
| Tu/Usted | as | es | es |
| Nosotros | amos | emos | imos |
| Vosotros | รกis | รฉis | รญs |
| Ellos/Ellas/Ustedes | an | en | en |
`
<!--more-->
To deal with this I wrote an Apple Shortcut that can generates a blank Markdown table of dimensions X by Y and conditionally includes a header row. It asks you to input the number of rows and columns you want when it runs and adds the result to your clipboard.
1. Go to Settings -> Shortcuts,
2. Enable Allow Untrusted Shortcuts,
3. Click [this link][shortcut] to install the shortcut,
4. Run it from the app, the share sheet or the widget.
Feel free to email me if you have any problems!
-- Finn ๐
[shortcut]: https://www.icloud.com/shortcuts/01d7eb73929045c9b88ad4bf5406d60d "Markdown Table Generator Shortcut"
[md]: https://daringfireball.net/projects/markdown/syntax "Markdown by John Gruber"
---------------