remove debug print

This commit is contained in:
Mylloon 2024-12-15 19:54:32 +01:00
parent d18b9639d7
commit 423997bc13
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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(())
}
)],