Introduction
A .gmi file holds gemtext, the hypertext format of the
Gemini protocol. It is a very small markup
for text with links, headings, lists, quotes and preformatted blocks. Its media type,
not yet registered, is text/gemini.
Structure
Gemtext is UTF-8 text read line by line, and the first characters of a line give its
type. => starts a link line (an address and an optional name),
# to ### start headings, * a list item and
> a quotation. A line of three backticks switches preformatted mode on
or off. Any other line is ordinary text.
# My capsule
Welcome.
=> gemini://example.org/log/ Weblog
* One item
> A quotation
Not described
This page is a first outline. The rules are not yet described in full here.
Known, not yet covered
- Reference: the detailed rules for each line type and the media type parameters, set out in the gemtext specification.
- Viewer: the site has no viewer for this format.
Links
Software
- Lagrange – graphical Gemini browser that displays gemtext (Windows, macOS, Linux)
Reference
- Gemtext specification – the definition of the line types and the media type
- Gemini (protocol) – Wikipedia; lists the gemtext extensions .gmi, .gmni and .gemini