Skip to content

Commit 54ad1d5

Browse files
authored
Update hbs_renderer.rs
1 parent 06909a7 commit 54ad1d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderer/html_handlebars/hbs_renderer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,9 +702,9 @@ fn make_data(
702702
if !html_config.additional_theme.is_empty() {
703703
let mut theme = Vec::new();
704704
for name in &html_config.additional_theme {
705-
match name.strip_prefix(root) {
706-
Ok(p) => theme.push(p.to_str().expect("Could not convert to str")),
707-
Err(_) => theme.push(name.to_str().expect("Could not convert to str")),
705+
match name {
706+
Ok(p) => theme.push(p.to_lowercase()),
707+
Err(_) => theme.push(name.to_lowercase()),
708708
}
709709
}
710710
data.insert("additional_theme".to_owned(), json!(theme));

0 commit comments

Comments
 (0)