Escaping in gemtext

Sudipto Mallick smallick.dev at gmail.com
Tue Nov 10 03:06:03 GMT 2020


Use whitespace before the preformatted text and give warning to your
reader to be careful when copying such text.

Maybe clients could do '''Maximum Common Frontal White Space
Elimination''' in preformatted text blocks :P

~smlckz


On 11/10/20, colecmac at protonmail.com <colecmac at protonmail.com> wrote:
>> > gemini://gemini.conman.org/test/escape2.gemini
>> > that uses " \b" (space, backspace character) which didn't work with
>> > cut-n-paste (at least on Firefox on Mac OS-X) but if I viewed the
>> > resulting file in a terminal and then did a cut-n-paste, the output
>> > was as expected.
>>
>> Here you're making assumptions about how \b will be rendered, I'm not
>> all against your approach, but I'm not also confident that all
>> implementations will render this properly.
>
> Agreed. In my client (Amfora), the \b is rendered as a space for some
> unknown reason. However this seems to be an issue with terminal UI
> toolkit used, as a simple command like
>
> printf '\btest'
>
> renders as expected on the command line, as just the word 'test'.
>
> I find using zero width spaces to be a cool hack, and using separate files
> to be an elegant solution.
>
> makeworld
>
>


More information about the Gemini mailing list