Syntax highlighting

raingloom raingloom at riseup.net
Sun Sep 19 09:43:19 BST 2021


On Sun, 12 Sep 2021 18:14:07 +0000
mntn at mntn.xyz wrote:

> The Gemtext spec would seem to have no problem with this, as the
> first line is considered "alt text" and it is up to the client to
> determine both what should be done with it and how it should affect
> the presentation. But I wanted to put this out there to get a broader
> perspective.

That's not what alt text is. It's for screen readers. A bunch of people
are way into ASCII art so alt text is needed. They are image
descriptions.

I recommend the following instead:
Just name the language on the line before the <pre> block.
ie.:

lua:
```
local function whatever() end
```

This way you aren't making an accessibility feature worse by trying to
overload it to be some generic metadata container.


More information about the Gemini mailing list