Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Oct 26, 2024
1 parent 33d2a3f commit 87d7083
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lychee-lib/src/extract/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ impl HeadingIdGenerator {
/// Converts text into kebab case
#[must_use]
fn into_kebab_case(text: &str) -> String {
text.to_lowercase().chars()
text.to_lowercase()
.chars()
.filter_map(|ch| {
if ch.is_alphanumeric() || ch == '_' || ch == '-' {
Some(ch)
Expand Down

0 comments on commit 87d7083

Please sign in to comment.