diff --git a/src/utils/markdown.rs b/src/utils/markdown.rs index d9cc594..531b6f4 100644 --- a/src/utils/markdown.rs +++ b/src/utils/markdown.rs @@ -212,12 +212,11 @@ fn fix_headers_ids(html: &str, path: Option<&FilePath>) -> String { element_content_handlers: vec![element!( "a:not([data-footnote-ref]):not(.footnote-backref)[href^='#']", |el| { - println!("{el:?}"); - let id = el.get_attribute("id").unwrap_or( path_to_hid(path) + remove_first_letter(&el.get_attribute("href").unwrap()), ); el.set_attribute("href", &format!("#{id}")).unwrap(); + Ok(()) } )],