glemtext

A small library for parsing Gemini’s gemtext.

Package Version Hex Docs

gleam add glemtext
import gleam/io
import glemtext

pub fn main() {
 let body = "# My site
this is my site! thank you for visiting

=> /about     About me
=> /projects  Projects
=> https://en.wikipedia.org/ Wikipedia"

 body
 |> glemtext.parse
 |> io.debug
}

Further documentation can be found at https://hexdocs.pm/glemtext.

Development

gleam test  # Run the tests
gleam shell # Run an Erlang shell
Search Document