better ids

This commit is contained in:
Mylloon 2024-12-14 02:24:29 +01:00
parent d0caa08819
commit 384700fd2b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -66,7 +66,8 @@ pub fn get_options(path: Option<FilePath>, metadata_type: MType) -> ComrakOption
fp.path fp.path
.get(..fp.path.len() - 3) .get(..fp.path.len() - 3)
.unwrap_or_default() .unwrap_or_default()
.replace(' ', "-") .replace([' ', '/'], "-")
.to_lowercase()
) )
} }
None => String::new(), None => String::new(),