print tree
This commit is contained in:
parent
2303cf3574
commit
564256f1b8
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue