11 lines
266 B
Rust
11 lines
266 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);
|
|
jotdown::html::write(std::io::stdout(), p).unwrap();
|
|
}
|