Remove .rst extensions in links.