Custom Text Formatting in Gemini?

If I want to emphasize a segment within a text by displaying it in italics, how can I achieve this?

Example:


Did I overlook something in the documentation?

Posted in: s/Gemini

πŸ‘€ 0oinwmr2

Aug 15 Β· 2 months ago

3 Comments ↓

🐑 Breebee · Aug 15 at 04:03:

That's the neat part, you don't.

In all seriousness, gemini is built on a line by line basis so the only thing that really matters for the formatting is the start of each line. This is done on purpose to keep websites simple and uncluttered, but this does mean any emphasis must be done on a new line (not to mention I don't think there's a specific thing to make italic other than quotes but that's on a client to client basis how it renders)

β€” geminiprotocol.net/docs/cheatsheet.gmi

πŸƒ skyjake [mod...] Β· Aug 15 at 04:11:

You did not overlook it. Gemtext does not support italics, bold, or other inline formatting.

Popular workarounds are _underscoring_ or *asterisks*, or sometimes you can UPPERCASE a word for emphasis. In other words, you should rely on old-school ASCII formatting.

Please don't try to be clever and use Unicode math symbols even though they provide italic A-Z letters, because those have a specific intended usage and will almost certainly confuse screen reader software.

When publishing content that requires more sophisticated formatting on your own capsule, I recommend using Markdown as the primary format and trimming it down to Gemtext for an alternative/fallback format, for clients that don't support Markdown (i.e., most Gemini clients).

πŸ’€ requiem Β· Aug 15 at 18:46:

You can use π”ππˆπ‚πŽπƒπ„ thingβ„€

edit: but Skyjake discourages it


Source