fix hyperlinks and nested lists