[ANN] html2gemini and html2gmi-cli - A Go library and app for converting HTML to Gemini
Luke Emmet
luke at marmaladefoo.com
Fri Jul 31 12:03:53 BST 2020
Hi Everyone
2 Gemini software announcements here, but they are related.
You can use them as-is, for example for file conversion or dual
web/gemini publishing.
Or if you are consuming HTML from the internet, you might want to
simplify the HTML first using Readability or other HTML simplifying
libraries to remove extraneous navigational cruft.
Bug fixes and improvement suggestions welcomed.
Best Wishes
- Luke
__________
# html2gemini - A Go library to convert HTML to text/gemini
I've forked and adapted an existing Go library html2text which outputs a
flavour of markdown so that it instead outputs text/gemini. Main features:
- heading levels, bullets, blockquote, preformatted content
- links done using embedded numeric citations and gemini links
- tables prettified and wrapped in preformatted text
https://github.com/LukeEmmet/html2gemini
__________
# html2gmi-cli - A command line app to convert HTML to text/gemini files
A simple command line application wrapping the html2gemini library you
can put into your command line workflows.
https://github.com/LukeEmmet/html2gmi-cli
More information about the Gemini
mailing list