added a fix for li without a ul/ol ancestor
allowing all text elements under comment