Skip to content

Commit

Permalink
fix(frontend): convert implicit heading id to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
nfejzic committed Jan 7, 2022
1 parent 653e733 commit c191c62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/um_elements/heading_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ impl HeadingBlock {
let (line_nr, _) = heading_start.as_span().start_pos().line_col();

// unwrap() is ok becuase heading grammar guarantees that heading has non-empty content
let id = parser::generate_id(heading_content.as_str()).unwrap();
let id = parser::generate_id(heading_content.as_str())
.unwrap()
.to_lowercase();

HeadingBlock {
id,
Expand Down

0 comments on commit c191c62

Please sign in to comment.