strip links, handling piped links