πŸ’Ύ Archived View for geminispace.org β€Ί s β€Ί discuss β€Ί 924 captured on 2023-05-24 at 17:40:13. Gemini links have been rewritten to link to archived content

View Raw

More Information

➑️ Next capture (2024-06-20)

-=-=-=-=-=-=-

Visual Gemtext Primer

I created a visual Gemtext primer some months ago to spot the difference in the rendering of Gemtext pages with different browsers.

Today I added a section at the bottom, because some clients behave differently and the spec is not very clear about this.

What's your take?

Posted in: s/discuss

πŸš€ michaelnordmeyer

2 hours ago Β· πŸ‘ Morgan

5 Comments ↑

πŸš€ michaelnordmeyer

@mozz I'm not sure I understand what you mean. I'm pro context-free rendering. So compacting multiple lines would be bad.

What I meant was inline whitespace. What happens to a text line, where I have two spaces in a row? What happens with quotes regarding ">" vs. "> "? In this case, Geopard, the Gnome-native Gemini browser, used to indent a quote by a space, but the wrapped line beginning was not indented.

16 minutes ago

πŸš€ michaelnordmeyer

@lufte With Gemini repo, do you mean

β€” https://gitlab.com/gemini-specification

It is not linked from gemini.circumlunar.space and seems to be outdated. Spec is v0.15.0 vs. v0.16.1.

21 minutes ago

β˜•οΈ mozz

Consecutive blank lines wonΚΌt be compacted into one.

I agree with you on this one. It's tempting to treat consecutive plain gemtext lines like a markdown paragraph, and normalize whitespace between "paragraphs" and other elements such as headings. But gemtext doesn't have semantic paragraphs, and grouping consecutive lines together that way feels like a misinterpretation of the spec to me.

For example, these two snippets should be rendered differently.

# Heading
Hello
# Heading

Hello world

The same argument applies to consecutive quote lines and bullet lines, which should not be grouped into a single semantic list or quote. But it's very familiar to want to treat them like <ul> and <blockquote> tags so that's what ends up happening.

23 minutes ago

πŸš€ michaelnordmeyer

@lufte A very useless line consisting of just => and maybe some whitespace afterwards. As soon as you have non-whitespace after =>, it will be considered a link.

Good thinking, btw. I added this case to the page. πŸ‘

28 minutes ago

πŸš€ lufte

I would open a ticket in the gemini spec repository about that discrepancy with headings. I like this capsule by the way, it will come in handy for anyone writing a browser and wanting to test their parsing code. I doubt I have myself is, for example, incomplete link or quotes. What is a line of text that only consists of "=>"? A text line? An invalid link and therefore invalid document? An empty link?

1 hour ago