correcting nested lists and links