Check render_embedded when scanning for closing tags (fixes #6)