use bracket::{ parser::{Parser, ParserOptions}, Result, }; /// Demonstrates how to get a document tree of nodes. fn main() -> Result<()> { let content = include_str!("files/document.md"); let options = ParserOptions { file_name: String::from("document.md"), line_offset: 0, byte_offset: 0, }; let mut parser = Parser::new(content, options); let doc = parser.parse()?; println!("{:#?}", doc); Ok(()) }