jotdown/src/main.rs

12 lines
268 B
Rust
Raw Normal View History

2022-11-12 12:45:17 -05:00
use std::io::Read;
fn main() {
let mut src = String::new();
std::io::stdin()
.read_to_string(&mut src)
.expect("failed to read unicode file");
2022-11-20 13:13:48 -05:00
let p = jotdown::Parser::new(&src);
2022-11-29 12:34:13 -05:00
jotdown::html::write(std::io::stdout(), p).unwrap();
2022-11-12 12:45:17 -05:00
}