parse inline elements of list items