blob: 64cfcd4825cce9cbedfd59283abd90493220f627 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//! This example demonstrates Germ's capabilities for converting Gemtext to
//! Markdown.
fn main() {
// Convert the Gemtext to Markdown
let html = germ::convert::from_string(
germ::EXAMPLE_GEMTEXT,
&germ::convert::Target::Markdown,
);
// Write the Markdown to a file
std::fs::write("examples/convert.md", html).expect("could not write to file");
}
|