jotdown/src/main.rs
2023-02-05 20:36:49 +01:00

12 lines
329 B
Rust

use std::io::Read;
fn main() {
let mut src = String::new();
std::io::stdin()
.read_to_string(&mut src)
.expect("failed to read utf-8 file");
let events = jotdown::Parser::new(&src);
let mut out = std::io::BufWriter::new(std::io::stdout());
jotdown::html::write(events, &mut out).unwrap();
}