abstract the link_data extraction; add external links to RTF export