lists: corrected markup, deals with text and raises error for unknown tags