Fix text directly inside lists

For fixing issue #483. Currently, a failing test.