Skip to content

Commit

Permalink
Just upgrade the library and dont remove code for frontmatter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpeach committed Dec 17, 2024
1 parent 8dddb13 commit 10432a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 4 additions & 7 deletions src/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -135,11 +133,10 @@ pub fn parse(path: &PathBuf, visitors: Vec<Rc<RefCell<dyn Visitor>>>) -> 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,
Expand Down

0 comments on commit 10432a8

Please sign in to comment.