#html #gemini #parser #format #text-parser #html-parser #gmi

gemini2html

Simple library for parsing Gemini (gmi) to HTML format

4 releases

0.2.2 Jul 9, 2022
0.2.1 Jul 8, 2022
0.2.0 Jul 8, 2022
0.1.0 Jul 8, 2022

#2894 in Parser implementations

Download history 5/week @ 2024-02-25 63/week @ 2024-03-31

63 downloads per month

GPL-3.0 license

16KB
76 lines

gmi2html

Library for parsing Gemini Text to HTML format

Example usage:

use gemini2html::parse_to_html;

let header = "# Title\n ## Description";
let html: Vec<String> = parse_to_html(header).unwrap();

assert_eq!(html, vec!["<h1>Title</h1>", "<h2>Description</h2>"])

lib.rs:

gemini2html

Simple library for parsing Gemini (gmi) to HTML format Example usage:

use gemini2html::parse_to_html;

let header = "# Title\n ## Description";
let html: Vec<String> = parse_to_html(header).unwrap();

assert_eq!(html, vec!["<h1>Title</h1>", "<h2>Description</h2>"])

No runtime deps