diff options
Diffstat (limited to 'examples/html.rs')
| -rw-r--r-- | examples/html.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/html.rs b/examples/html.rs index 00d62ed..5e1821d 100644 --- a/examples/html.rs +++ b/examples/html.rs @@ -46,15 +46,12 @@ This is more text after a blank line. That was a link without text."#; fn main() { - println!( - "{}", - // germ::convert::convert_from_ast( - // germ::ast::build(EXAMPLE_GEMTEXT), - // germ::convert::Target::Markdown - // ) + std::fs::write( + "examples/convert.html", germ::convert::convert_from_string( EXAMPLE_GEMTEXT, germ::convert::Target::HTML, ), - ); + ) + .expect("could not write to file"); } |