3 releases

0.1.8 May 23, 2022
0.1.7 May 23, 2022
0.1.6 Aug 8, 2020

#41 in #gemini

MIT license

14KB
345 lines

gmi2html

Simple library and command line tool to convert gemini to HTML


lib.rs:

An implementation of gmi -> HTML conversion, based on the text/gemini spec v0.14.2

Example usage:

use gmi2html::GeminiConverter;

let res = GeminiConverter::new(r#"
## Hello, Gemini
Lorem Ipseum
=> gemini://gemini.circumlunar.space
"#)
   .proxy_url("https://portal.mozz.us/gemini/")
   .inline_images(true)
   .to_html();

Dependencies

~2.2–3MB
~57K SLoC