💾 Archived View for rawtext.club › ~sloum › geminilist › 001279.gmi captured on 2020-09-24 at 01:59:22. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Martin Bays mbays at sdf.org
Wed Jun 3 00:06:10 BST 2020
- - - - - - - - - - - - - - - - - - -
But if anybody thinks they see a real problem with the design of
anything currently in the protocol, in principle now is the time to
mention it.
One little thing that's bothered me ever since first reading the spec, and which I can't see being discussed before (sorry if I missed it):there seems to be no way to quote a line starting with "```". So for example there's no way to present in a preformatted text block a gemini document which contains "```" lines.
Relatedly, there's no way to have a text line which starts with any of the magic character sequences.
Here's one possible way to solve both these problems *and* the problem of invisible strings on a "```" line being used for extensibility:
A line consisting of just the three characters "```" is a preformatting toggle line. A line of the form "```TEXT" is interpreted as a text line with contents TEXT if preformatted mode is currently off, and as a preformatted line with contents TEXT if preformatted mode is on.
Examples:
That last one would be equivalent to:
which is easier to read.