diff --git a/src/utils/markdown.rs b/src/utils/markdown.rs index 66323f0..1ffe1d5 100644 --- a/src/utils/markdown.rs +++ b/src/utils/markdown.rs @@ -66,7 +66,8 @@ pub fn get_options(path: Option, metadata_type: MType) -> ComrakOption fp.path .get(..fp.path.len() - 3) .unwrap_or_default() - .replace(' ', "-") + .replace([' ', '/'], "-") + .to_lowercase() ) } None => String::new(),