πŸ’Ύ Archived View for gemi.dev β€Ί gemini-mailing-list β€Ί 000225.gmi captured on 2024-08-18 at 23:52:34. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

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

Escaping in text/gemini

1. Francesco Gazzetta (fgaz (a) fgaz.me)

Just after the feature freeze :) I remembered to post about this: is
there an official way to escape stuff in text/gemini?

For example in gemini://gemini-textboard.fgaz.me/thread/3 from post #37
onwards you can see that links, pre blocks, etc are all escaped with a
backslash, but the backslash appears in the output an is kinda ugly.

Link to individual message.

2. Felix Queißner (felix (a) masterq32.de)



On 16.06.20 11:18, Francesco Gazzetta wrote:
> Just after the feature freeze :) I remembered to post about this: is
> there an official way to escape stuff in text/gemini?
> 
> For example in gemini://gemini-textboard.fgaz.me/thread/3 from post #37
> onwards you can see that links, pre blocks, etc are all escaped with a
> backslash, but the backslash appears in the output an is kinda ugly.

I think the escaping is done pretty easily: Prefix your lines with a
single space.

Gemini requires you to have line identifiers to be at the very start of
a line, so prefixing the line with a single space should escape the line
itself.

I've made a simple test file [0] for that, Kristall strips of leading
spaces in pretty much all text except preformatted one to make a nice
text rendering. You can see a "reference" rendering in [1].

Regards
- xq

[0] gemini://random-projects.net/torture/0007.gemini
[1] https://mq32.de/public/6b626fd8070b6aba9fa3add94d85d7209592acfd.png

Link to individual message.

3. Frank LENORMAND (lenormfml (a) gmail.com)

On Thu Jan  1 03:00:00 1970, Francesco Gazzetta wrote:
> Just after the feature freeze :) I remembered to post about this: is
> there an official way to escape stuff in text/gemini?
> 
> For example in gemini://gemini-textboard.fgaz.me/thread/3 from post #37
> onwards you can see that links, pre blocks, etc are all escaped with a
> backslash, but the backslash appears in the output an is kinda ugly.

That took even less time than I expected.

>Only a matter of time until you see writers start escaping [text]

gemini://gemi.dev/gemini-mailing-list/messages/001444.gmi

Regards,
-- 
Frank LENORMAND

Link to individual message.

4. Francesco Gazzetta (fgaz (a) fgaz.me)

On Tue, 16 Jun 2020 11:26:57 +0200
Felix Quei?ner <felix at masterq32.de> wrote:

> I think the escaping is done pretty easily: Prefix your lines with a
> single space.

That could work if clients start stripping leading whitespace. I don't
know of any client that does this though.

> I've made a simple test file [0] for that, Kristall strips of leading
> spaces in pretty much all text except preformatted one to make a nice
> text rendering. You can see a "reference" rendering in [1].

The whitespace seems to still be there though:

https://framapic.org/jrL943673D6n/LaxAzkOCzEnL.png

Link to individual message.

5. defdefred (defdefred (a) protonmail.com)

If another * is found in the same line, it is not a bullet.

Link to individual message.

---

Previous Thread: Introducing YouTube Interface for Gemini

Next Thread: HTTP/0.95 - the sweet spot or thereabouts?