Gemtext cheatsheet

📆 2024-10-11 11:23

This is a quick "cheatsheet" intended for people who haven't been writing Gemtext for long or who need their memory refreshed after a break. If you're completely new to Gemtext and you need things explained in a more detail, you should check out the full length introduction:

Text

Here's the basics of how text works in Gemtext:

At the bare minimum, a link line consists of just the characters `=>` and a URL. Here's a link to this page:

gemini://sava.rocks/blog/cheatsheet/

But you can include labels with links, and probably should most of the time. Labels are separated from the URL by one or more spaces or tabs:

Gemtext cheatsheet with examples from Sava.Rocks

Headings

You get three levels of heading:

Lists

You get one kind of list and you can't nest them:

Quotes

Here's a quote from Maciej Cegłowski:

I contend that text-based websites should not exceed in size the major works of Russian literature. I contend that text-based websites should not exceed in size the major works of Russian literature. I contend that text-based websites should not exceed in size the major works of Russian literature. I contend that text-based websites should not exceed in size the major works of Russian literature.

Pre-fromatted text

Lines which start with ``` will cause clients to toggle in and out of ordinary rendering mode and preformatted mode. In preformatted mode, Gemtext syntax is ignored so links etc. will not be rendered, and text will appear in a monospace font.

🚶 Back to my blog

The page https://sava.rocks/blog/cheatsheet/ is available on 2 other protocols:
Gemini:
gemini://sava.rocks/blog/cheatsheet/
Gopher:
gopher://sava.rocks/1/blog/cheatsheet/
How can you reach these protocols ?
It's simple. Details are found on this page
Website Meta
text/gemini