pub fn heading2link(text: &str) -> StringExpand description
Convert heading text to a GFM-style anchor string.
Does not deduplicate - see collect_heading_links for counter logic.
§Examples
use mdrefcheck::parser::heading2link;
assert_eq!(heading2link("Hello World"), "hello-world");
assert_eq!(heading2link("This -- Is__A_Test!"), "this----is__a_test");
assert_eq!(heading2link("A heading with 💡 emoji!"), "a-heading-with--emoji");