Skip to content

Commit

Permalink
Fix heading search
Browse files Browse the repository at this point in the history
  • Loading branch information
henriklovhaug committed Mar 9, 2024
1 parent a2c4948 commit 1e3061f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ impl RenderRoot {
.content()
.iter()
.flatten()
.filter(|c| c.content() != " ")
.map(|c| {
c.content()
.trim()
.to_lowercase()
.replace(['(', ')', '.', ','], "")
.replace(['(', ')', '.', ',', '-'], "")
})
.filter(|c| !c.is_empty())
.eq(heading.clone())
{
return Ok(y_offset);
Expand Down

0 comments on commit 1e3061f

Please sign in to comment.