Home

Awesome

html2gmi

A command line application to convert HTML to GMI (Gemini text/gemini), written in Go. Written in Go so it should compile on various common platforms (linux/mac/windows etc).

A simple wrapper around the Go library https://github.com/LukeEmmet/html2gemini

Usage

html2gmi <flags>

  -m, --citationMarkers         Use footnote style citation markers
  -c, --citationStart int       Start citations from this index (default 1)
  -i, --input string            Input path. Otherwise uses stdin
  -l, --linkEmitFrequency int   Emit gathered links through the document after this number of paragraphs (default 2)
  -n, --numberedLinks           Number the links
  -o, --output string           Output path. Otherwise uses stdout
  -e, --emitImagesAsLinks       Emit links to included images
  -t, --prettyTables            Pretty tables - works with most simple tables
  -v, --version                 Find out what version of html2gmi you're running

  

Remarks

You can pipe content in from other applications, for example utilities that download HTML from the web.

To strip out cruft, use an HTML sanitiser before passing the content to this app.

Building

If you have Go installed, you can install the latest commit using

go env -w GO111MODULE=on
go get github.com/LukeEmmet/html2gmi@master

History

0.2.7

0.2.6

0.2.5

0.2.4

0.2.2

0.2.1