Handling directives that just follow texts (fixes #13)