remove invalid link within code block