better ids
This commit is contained in:
parent
d0caa08819
commit
384700fd2b
1 changed files with 2 additions and 1 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue