Fix issue with markup spanning multiple lines