gemrendr 0.2.1

Turns Gemtext into idiomatic HTML
Documentation

Turns Gemtext into idiomatic HTML.

use gemrendr::html_from_gemtext;

let document = "# Hello, world!";
let output = html_from_gemtext(document, Default::default());

assert!(output.ends_with("<h1>Hello, world!</h1>"));

By default, the output includes a comment that points to gemrendr's public source code repository. To omit this line, configure render options like so:

use gemrendr::{RenderOptions, html_from_gemtext};

let options = RenderOptions {
	preamble: false,
	..Default::default()
};
let document = "# Hello, world!";
let output = html_from_gemtext(document, options);

assert_eq!(output, "<h1>Hello, world!</h1>");

See [RenderOptions] for more available options.