Fixed issue #401:
In addition to the case where the first node of <li> is a text node, the following cases are handled:
* li has mixed content
* the first child of li is a <p> element
Added test file for #402