Could you add option to avoid </li> tag, please? For example, --no-li-end-tag.
From The HTML syntax:
An li element's end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element.
For easy implementation, this new option can omit all </li> tags.