Fix #272, thanks to Zolxys.

Should check for /^\*+\s+/ pattern before splitting the line,
avoid inserting <ul> by mistake and make sure </ul> inserted exactly once for each
<ul>