/glemtext

Gemtext parser for Gleam

Primary LanguageGleamMozilla Public License 2.0MPL-2.0

glemtext

A small library for parsing Gemini's gemtext.

Package Version Hex Docs GitHub Actions: test.yml status

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