fixed extracting links in headings and lists