complete some links in documents