Escaping in text/gemini
Felix Queißner
felix at masterq32.de
Tue Jun 16 10:26:57 BST 2020
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
More information about the Gemini
mailing list