Fix text directly inside lists

Formerly #485.