馃 The Definitive Gemini Protocol Toolkit
gemini gemini-protocol gemtext parser zero-dependency toolkit ast converter html markdown cli networking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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