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 |
#43 in #gemini
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>"])