diff --git a/src/convert.rs b/src/convert.rs index fe39804..d3cbb54 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -1 +1,6 @@ pub mod npf; + +#[derive(Clone, Debug, clap::ValueEnum)] +pub enum Formats { + NPF, +} diff --git a/src/convert/npf.rs b/src/convert/npf.rs index 2c22ce6..2d46da0 100644 --- a/src/convert/npf.rs +++ b/src/convert/npf.rs @@ -74,7 +74,6 @@ impl<'a> TryFrom<&'a Node<'a, RefCell>> for objects::Post { NodeValue::Document => Self::try_from(node.children()), NodeValue::Paragraph => { let p = Self::try_from(node.children())?.fold_content(); - println!("{p:#?}"); Ok(p) } NodeValue::BlockQuote => { diff --git a/src/frontmatter.rs b/src/frontmatter.rs index f09a6ac..3cdb17a 100644 --- a/src/frontmatter.rs +++ b/src/frontmatter.rs @@ -1,4 +1,3 @@ -use std::borrow::{Borrow, BorrowMut}; use std::cell::RefCell; use serde_yaml as yaml; diff --git a/src/main.rs b/src/main.rs index eac8137..8a00387 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,6 @@ use clio::Input; use mdparser::convert; use mdparser::frontmatter::Frontmatter; use mdparser::links; -use mdparser::utils; #[derive(Parser, Debug)] #[command(version = "0.1", about = "", long_about = None, propagate_version = true)] diff --git a/src/utils.rs b/src/utils.rs index af73b15..bf2e237 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,7 +1,3 @@ -use std::cell::RefCell; - -use comrak::nodes::NodeValue; - pub fn default_options() -> comrak::Options { let mut opts = comrak::Options::default(); @@ -73,4 +69,3 @@ where } None } -