From 423997bc131a96b13502d996bd741429d072d40c Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 15 Dec 2024 19:54:32 +0100 Subject: [PATCH] remove debug print --- src/utils/markdown.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(()) } )],