Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Oct 18, 2024
1 parent 274a995 commit f5a4f7c
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 f5a4f7c

Please sign in to comment.