Skip to content

myrkvi/glemtext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Gemtext parser for Gleam

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages