I tried this way, but it was a table cell element, so is_list_item was failing. What was important to latex parser is knowing if there is a list inside of the table cell so that's i'm checking if there is a descendant with that tag