Expand description

Gemtext documents

The Gemini specification lays out a lightweight document format to facilitate highly readable and sufficiently interactive content.

Presently, this module only provides a way to incrementally build up a gemtext document programmatically, and serialize as utf-8 text using any type that implements std::fmt::Write.

NB: Parsing gemtext from strings won’t necessarily preserve whitespace.

use gemini::Builder;

let doc = Builder::new().text("foo").line().quote("bar");
assert_eq!(doc.build(), "foo\n\n> bar\n");

Modules

Parser

Structs

A type for incrementally building up a gemtext document that can then be reified into text format.

Enums

Representation of lines in a gemtext document.

Heading level.