added testing for markdown lists, so they don't mess up the output