Fix inserted markup