Escaping in gemtext

mbays at sdf.org mbays at sdf.org
Wed Nov 11 08:00:28 GMT 2020


[The quoted messages below didn't go to the list, but were meant to] 

* Wednesday, 2020-11-11 at 08:18 +0100 - Philip Linde <linde.philip at gmail.com>:

>On Wed, 11 Nov 2020 07:26:15 +0100
>mbays at sdf.org wrote:
>
>> Ah no, I didn't mean to remove the current rule that the default
>> interpretation of a line is as a text line, nor to remove the
>> preformatted toggle lines. So the only documents whose meaning would be
>> changed are those which have lines beginning with '\' or '`` '. I don't
>> know of any.
>
>In that case it doesn't make gemtext simpler, more regular, which is
>probably why I misunderstood you. It just adds an additional parsing
>case to the existing ones.

So it is a bit strained, but the idea is that you can describe gemtext 
in the following terms: there are various line types, each line type 
except Text and Preformatted is introduced by a 1-3 char prefix; any 
line which doesn't start with one of the prefixes is considered to be 
Text; [rules about toggling to preformatted mode]. Then this change 
would delete the "except Text and Preformatted" from this summary.

It's even more strained because alt-text doesn't fit with this "list of 
lines" interpretation of a gemtext.

Anyway, this change would be pretty close to backwards-compatible. The 
only real downside is that it adds two new magic prefixes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20201111/2c94959b/attachment.sig>


More information about the Gemini mailing list