πΎ Archived View for finn.lesueur.nz βΊ posts βΊ markdown-table-generator βΊ index.gmi captured on 2023-06-14 at 14:18:53. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
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"
---------------