Comment by ๐Ÿ•ธ arma

Re: "How should I do tables in gemtext for my blog?"

In: s/Gemini

CSV really should be a supported format for preformatted lines. Markdown's way of doing tables seems the wrong way.

๐Ÿ•ธ arma

Apr 19 ยท 3 weeks ago

3 Later Comments โ†“

๐Ÿš€ lars_the_bear ยท Apr 19 at 08:41:

@arma : I can certainly see why you might think that. But Markdown tables (which I don't think are fully standardized) are designed to be human-readable as plain text. That is, you should still be able to visualize the tablular format even if the Markdown isn't rendered. That isn't really true with CSV, and you still need a way to signal whether there's a header row or not.

๐Ÿ•ธ arma ยท Apr 24 at 05:24:

@lars_the_bear Markdown's extended syntax does support tables. That sort of graphical thing isn't something I'd ever want to write manually. About detecting whether CSV has a header row: the fact that there's not a definite answer to that is an intrinsic shortcoming of CSV. I'd say CSV doesn't really support headers, but many act as if it did. So, for now now I'd say CSV contained in preformatted lines is the best option. As for detecting header rows, I'd say the same heuristics that are in use today apply here as well. Another option would be to create an alternative to CSV that mandates a header, or has an option to indicate whether there is a header.

๐Ÿ‘ zipsegv [OP] ยท Apr 25 at 05:54:

@arma:

That sort of graphical thing isn't something I'd ever want to write manually.

this seems more like an editor issue than anything. For vim there's table-mode[1] which is extremely useful, and I imagine something similar exists for other editors.

โ€” [1] vim-table-mode

Original Post

๐ŸŒ’ s/Gemini

๐Ÿ‘ zipsegv:

How should I do tables in gemtext for my blog? โ€” I have a blog (that I've been meaning to write to more). I use an SSG to generate both html and gemtext from a custom format, and I've recently needed to have tables for a post I want to make. However, gemtext (obviously) does not have tables. My idea was to use preformatted blocks to draw a diagram of this, so something like this: [preformatted] However, I'm not sure if this is good from an acessibility point of view. Does this cope well with...

๐Ÿ’ฌ 24 comments ยท Mar 19 ยท 7 weeks ago