print tree

This commit is contained in:
Noah Hellman 2022-12-08 18:14:42 +01:00
parent 2303cf3574
commit 564256f1b8

View file

@ -6,6 +6,9 @@ fn main() {
.read_to_string(&mut src) .read_to_string(&mut src)
.expect("failed to read utf-8 file"); .expect("failed to read utf-8 file");
let p = jotdown::Parser::new(&src);
println!("{:#?}", p.collect::<Vec<_>>());
let p = jotdown::Parser::new(&src); let p = jotdown::Parser::new(&src);
let mut out = std::io::BufWriter::new(std::io::stdout()); let mut out = std::io::BufWriter::new(std::io::stdout());
jotdown::html::write(&mut out, p).unwrap(); jotdown::html::write(&mut out, p).unwrap();