💾 Archived View for rawtext.club › ~sloum › geminilist › 002612.gmi captured on 2020-09-24 at 03:00:03. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-09-24)

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

<-- back to the mailing list

Escaping Gemtext

Paper paper at tilde.institute

Wed Sep 9 21:02:14 BST 2020

- - - - - - - - - - - - - - - - - - - 

I am building a feed reader, so I am outputting plain text which cancontain some gemtext markup. I want to print it, but the clientshouldn't consider it a gemini markup. I could return "text/plain", butI need some gemini formatting in the same page. After some discussion onIRC yesterday, we found three approaches:

1. putting preformatting toggle lines before and after the user input```user input```- 10 more characters for each line (6 normal characters + 2x\r + 2x\n)- if user inputs ```, all content under it will have preformatting toggle reversed+ supported in all clients

2. putting a single space in front of the user input user input+ only 1 line+ supported in all clients- shifts the entire user input one character to the right

3. putting a single unicode invisible space in front of the user input‎user input+ doesn't change the horizontal position of the text- I am not sure what clients without support for outputting UTF-8 text will do with it

For now, I think the second option is best for me, am I missing someoptions?

Paper