remove debug print
This commit is contained in:
parent
d18b9639d7
commit
423997bc13
1 changed files with 1 additions and 2 deletions
|
@ -212,12 +212,11 @@ fn fix_headers_ids(html: &str, path: Option<&FilePath>) -> String {
|
||||||
element_content_handlers: vec![element!(
|
element_content_handlers: vec![element!(
|
||||||
"a:not([data-footnote-ref]):not(.footnote-backref)[href^='#']",
|
"a:not([data-footnote-ref]):not(.footnote-backref)[href^='#']",
|
||||||
|el| {
|
|el| {
|
||||||
println!("{el:?}");
|
|
||||||
|
|
||||||
let id = el.get_attribute("id").unwrap_or(
|
let id = el.get_attribute("id").unwrap_or(
|
||||||
path_to_hid(path) + remove_first_letter(&el.get_attribute("href").unwrap()),
|
path_to_hid(path) + remove_first_letter(&el.get_attribute("href").unwrap()),
|
||||||
);
|
);
|
||||||
el.set_attribute("href", &format!("#{id}")).unwrap();
|
el.set_attribute("href", &format!("#{id}")).unwrap();
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
)],
|
)],
|
||||||
|
|
Loading…
Reference in a new issue