Gemtext

Gemtext is the syntax used to create pages for the Gemini protocol. Gemtext files end in the .gmi extension, and are of MIME type "text/gemini," which is a subtype of the "text" format.

Syntax

Line breaks

New lines are interpreted as line breaks.

This is a second line.

Headings

There are three levels of headings, each designated with the pound character (#) at the beginning of the line

# Heading 1
## Heading 2
### Heading 3

Heading 1

Heading 2

Heading 3

Links

Links are designated by typing "=>" at the beginning of the line, and must be located on their own line. Links can be relative

=> ../wiki/GemText/

or absolute

=> gemini://auragem.ddns.net/~wikigem/wiki/GemText/

To add a label to your link, add a space at the end and then the label

=> gemini://auragem.ddns.net/~wikigem/wiki/GemText/ Gemtext on Wikigem
Gemtext on Wikigem

Lists

Lists are designated by beginning the line with an asterisk (*). There is no ordered list.

* List item 1
* List item 2

Quotes

Quotes are designated by writing a greater-than symbol (>) at the beginning of the line. They continue until the line breaks

> "We are what we pretend to be, so we must be careful what we pretend to be" - Kurt Vonnegut
"We are what we pretend to be, so we must be careful what we pretend to be" - Kurt Vonnegut

Preformatted text

Preformatted text is designated by wrapping the content in three backticks (```), one at the beginning, and one at the end.

if(a = true){
	print "Hello world!";
}

Related Links

Official Specification
Gemtext Cheatsheet