improve smart_text_link/add external_uri support