~henryprecheur/gmi2html

text/gemini to HTML converter
Escape preformatted string
Add MIT LICENSE file

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~henryprecheur/gmi2html
read/write
git@git.sr.ht:~henryprecheur/gmi2html

You can also use your local clone with git send-email.

#Convert GMI files to HTML

gmi2html is a text/gemini to HTML converter written in Go:

$ 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.