Update line numbers in links.