Fixed issue with lists containing duplicate items
Lists can have blank lines between elements

Before, lists wouldn’t be formatted if they had blank lines in between
elements.