A small library for parsing Gemini's gemtext.
gleam add glemtextimport 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.
gleam test # Run the tests
gleam shell # Run an Erlang shell