Gemini is a hip alternative to the HTTP/HTML based Internet. I don’t want to miss out on the hype, so I wrote gmi2html. It’s a text/gemini to HTML converter written in Go, and it’s hosted on sourcehut:
$ go get git.sr.ht/~henryprecheur/gmi2html $ go install git.sr.ht/~henryprecheur/gmi2html
Its design is inspired from Rob Pike’s talk: Lexical Scanning in Go. The state of the lexer is kept in a callback, this neat trick simplifies the lexer, and makes it more efficient. gmi2html reads its input from stdin and writes the result to stdout, and there’s no flag:
$ gmi2html < input.gmi > output.html
It doesn’t support any extension like list, and heading yet. I’ll add these features in the coming weeks.