Throws error on unclosed markup.