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

12 lines
319 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 p = jotdown::Parser::new(&src);
let mut out = std::io::BufWriter::new(std::io::stdout());
jotdown::html::write(&mut out, p).unwrap();
}