From 564256f1b88c057db4c94b7643ab566717417d37 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Thu, 8 Dec 2022 18:14:42 +0100 Subject: [PATCH] print tree --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index c6b4c57..e9fea46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,9 @@ fn main() { .read_to_string(&mut src) .expect("failed to read utf-8 file"); + let p = jotdown::Parser::new(&src); + println!("{:#?}", p.collect::>()); + let p = jotdown::Parser::new(&src); let mut out = std::io::BufWriter::new(std::io::stdout()); jotdown::html::write(&mut out, p).unwrap();