Re:The case against self-closing tags in HTML
by jraph on Thursday July 06, 2023 @10:58AM
(#36617014)
A while ago, I designed a syntax supporting colspan (the last pipe of the line being optional):
|| are easier | than |
| any | markdown | flavor |
The number of consecutive pipes would increase the colspan value. I think I also had support for rowspan but I don't remember how.The XWiki syntax [1] also supports it by letting you use HTML attributes.
|=Title 1|=(% style="background-color:yellow" %)Title 2
|(% colspan=2 %) Word 1 Word 2
Arguably more clunky and less intuitive, but more powerful I guess.(disclaimer: I work for XWiki)
[1] https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide...
Re:The case against self-closing tags in HTML
by hinkley on Thursday July 06, 2023 @11:27AM
(#36617516)
Trac’s wiki format has tables that work like that, and I don’t think it’s the first time I’ve seen colspan in wiki markup.
Re:The case against self-closing tags in HTML
by layer8 on Thursday July 06, 2023 @10:50AM
(#36616855)
HTML tables are easier in the sense that if the length of the cell contents changes, or you add or remove lines within a single cell, that’s easy in HTML but inconvenient in Markdown (or requires special editor support).
Re:The case against self-closing tags in HTML
by taeric on Thursday July 06, 2023 @10:55AM
(#36616946)
Fair, "easier to write." They lose heavily on the "easy to read." (And folks that recognize my table as the org-mode table know that resizing the pipes is automatic for you, such that that shortcoming is addressed. :D )
Re:The case against self-closing tags in HTML
by layer8 on Thursday July 06, 2023 @11:20AM
(#36617383)
Markdown was originally only intended as an authoring format, not a viewing format (it was just intended as an easier way to author HTML), and it is still used a lot in that manner (e.g. GitHub readmes).
Re:The case against self-closing tags in HTML
by taeric on Thursday July 06, 2023 @11:36AM
(#36617634)
Ish. Per https://en.wikipedia.org/wiki/Markdown, the goal was "to write using an easy-to-read and easy-to-write plain text format, optionally convert it to structurally valid XHTML (or HTML)."
Re:The case against self-closing tags in HTML
by abathur on Thursday July 06, 2023 @10:59AM
(#36617038)
I feel like I remember restructured text's visual table format supporting rowspan/colspan cells.
(but I've also read the docs for nearly every minimal markup format I can find, so I might be misremembering... :)
My favorite simple tables look like:
Granted, I don't know of any that allow colspan/rowspan well. And even fewer that support newlines in a cell. Styling can also be annoying. But simple tables are surprisingly annoying in most any of these options.(I should say that I fully agree with you, btw.)