fix link formatting and re-wrap text after edits