diff --git a/Cargo.toml b/Cargo.toml index af043c0..e06e0dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,9 +13,9 @@ debug = true [dependencies] aho-corasick = "1.1.3" -bon = "2.3.0" +bon = "3.3.0" clap = { version = "4.5.16", features = ["derive"] } -comrak = "0.29.0" +comrak = "0.32.0" derive_more = { version = "1.0.0", features = ["full"] } env_logger = "0.11.5" fuzzy-matcher = "0.3.7" diff --git a/src/visitor.rs b/src/visitor.rs index 5683aa5..d41c278 100644 --- a/src/visitor.rs +++ b/src/visitor.rs @@ -5,9 +5,7 @@ use std::{ rc::Rc, }; -use comrak::{ - arena_tree::Node, nodes::Ast, parse_document, Arena, ExtensionOptionsBuilder, Options, -}; +use comrak::{arena_tree::Node, nodes::Ast, parse_document, Arena, ExtensionOptions, Options}; use log::{debug, trace}; use std::backtrace; use thiserror::Error; @@ -135,11 +133,10 @@ pub fn parse(path: &PathBuf, visitors: Vec>>) -> Result< // Parse the source code let arena = Arena::new(); - let options = ExtensionOptionsBuilder::default() - .front_matter_delimiter(Some("---".to_string())) + let options = ExtensionOptions::builder() + .front_matter_delimiter("---".to_string()) .wikilinks_title_before_pipe(true) - .build() - .expect("Constant"); + .build(); let root = parse_document( &arena, &source,